This commit is contained in:
Redkale
2017-11-17 14:19:22 +08:00
parent 0b5a79c1d8
commit 3847cf47e4

View File

@@ -30,10 +30,13 @@ public static void main(String[] args) throws Throwable {
String line = null;
LineNumberReader txtin = new LineNumberReader(new FileReader(new File(destasmroot, "asm.txt")));
while ((line = txtin.readLine()) != null) {
line = line.trim();
if(!line.endsWith(".java")) continue;
line = line.trim();
if (!line.endsWith(".java")) continue;
File srcfile = new File(srcasmroot, line);
File destfile = new File(destasmroot, line);
Files.copy(srcfile.toPath(), destfile.toPath());
String content = Utility.readThenClose(new FileInputStream(srcfile));
FileOutputStream out = new FileOutputStream(destfile);
out.write(content.replace("jdk.internal.org.objectweb", "org.redkale").getBytes());
out.close();
}
}