This commit is contained in:
@@ -15,7 +15,9 @@ import org.redkale.util.Utility;
|
|||||||
public class AsmCreator {
|
public class AsmCreator {
|
||||||
|
|
||||||
public static void main(String[] args) throws Throwable {
|
public static void main(String[] args) throws Throwable {
|
||||||
|
boolean realasm = true; //从http://forge.ow2.org/projects/asm/ 下载最新asm的src放在 srcasmroot 目录下
|
||||||
File srcasmroot = new File("D:/JAVA/JDK源码/JDK9源码/java.base/jdk/internal/org/objectweb/asm");
|
File srcasmroot = new File("D:/JAVA/JDK源码/JDK9源码/java.base/jdk/internal/org/objectweb/asm");
|
||||||
|
if(realasm) srcasmroot = new File("D:/JAVA/JDK源码/org/objectweb/asm");
|
||||||
File destasmroot = new File("D:/Java-Projects/RedkaleProject/src/org/redkale/asm");
|
File destasmroot = new File("D:/Java-Projects/RedkaleProject/src/org/redkale/asm");
|
||||||
String line = null;
|
String line = null;
|
||||||
LineNumberReader txtin = new LineNumberReader(new FileReader(new File(destasmroot, "asm.txt")));
|
LineNumberReader txtin = new LineNumberReader(new FileReader(new File(destasmroot, "asm.txt")));
|
||||||
@@ -26,7 +28,7 @@ public class AsmCreator {
|
|||||||
File destfile = new File(destasmroot, line);
|
File destfile = new File(destasmroot, line);
|
||||||
String content = Utility.readThenClose(new FileInputStream(srcfile));
|
String content = Utility.readThenClose(new FileInputStream(srcfile));
|
||||||
FileOutputStream out = new FileOutputStream(destfile);
|
FileOutputStream out = new FileOutputStream(destfile);
|
||||||
out.write(content.replace("jdk.internal.org.objectweb", "org.redkale").getBytes());
|
out.write(content.replace("jdk.internal.org.objectweb", "org.redkale").replace("org.objectweb", "org.redkale").getBytes());
|
||||||
out.close();
|
out.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user