From 3847cf47e4ab26aa1f9e85edd3dcd22216bab52c Mon Sep 17 00:00:00 2001 From: Redkale <22250530@qq.com> Date: Fri, 17 Nov 2017 14:19:22 +0800 Subject: [PATCH] --- src/org/redkale/asm/asm.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/org/redkale/asm/asm.txt b/src/org/redkale/asm/asm.txt index 0c7f7b531..485abad7a 100644 --- a/src/org/redkale/asm/asm.txt +++ b/src/org/redkale/asm/asm.txt @@ -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(); } } \ No newline at end of file