This commit is contained in:
@@ -21,22 +21,3 @@ MethodWriter.java
|
|||||||
Opcodes.java
|
Opcodes.java
|
||||||
Type.java
|
Type.java
|
||||||
TypePath.java
|
TypePath.java
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public static void main(String[] args) throws Throwable {
|
|
||||||
File srcasmroot = new File("D:/JAVA/JDK源码/JDK9源码/java.base/jdk/internal/org/objectweb/asm");
|
|
||||||
File destasmroot = new File("D:/Java-Projects/RedkaleProject/src/org/redkale/asm");
|
|
||||||
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;
|
|
||||||
File srcfile = new File(srcasmroot, line);
|
|
||||||
File destfile = new File(destasmroot, line);
|
|
||||||
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();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
33
test/org/redkale/test/asm/AsmCreator.java
Normal file
33
test/org/redkale/test/asm/AsmCreator.java
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package org.redkale.test.asm;
|
||||||
|
|
||||||
|
import java.io.*;
|
||||||
|
import org.redkale.util.Utility;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author zhangjx
|
||||||
|
*/
|
||||||
|
public class AsmCreator {
|
||||||
|
|
||||||
|
public static void main(String[] args) throws Throwable {
|
||||||
|
File srcasmroot = new File("D:/JAVA/JDK源码/JDK9源码/java.base/jdk/internal/org/objectweb/asm");
|
||||||
|
File destasmroot = new File("D:/Java-Projects/RedkaleProject/src/org/redkale/asm");
|
||||||
|
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;
|
||||||
|
File srcfile = new File(srcasmroot, line);
|
||||||
|
File destfile = new File(destasmroot, line);
|
||||||
|
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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user