Skip to content

Commit b548c08

Browse files
author
zhourenjian
committed
Fix generator console error
1 parent cedc732 commit b548c08

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sources/net.sf.j2s.ajax/generator/net/sf/j2s/ajax/SimpleSource4Java.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,8 +510,9 @@ public static void main(String[] args) {
510510
folder.mkdirs();
511511
}
512512
}
513-
SourceUtils.updateSourceContent(new File(targetPath, simpleName + ".java"), javaSource);
514-
System.out.println(new File(targetFolder, simpleName + ".java").getAbsolutePath());
513+
File javaFile = new File(targetPath, simpleName + ".java");
514+
SourceUtils.updateSourceContent(javaFile, javaSource);
515+
System.out.println(javaFile.getAbsolutePath());
515516
continue;
516517
}
517518
Object inst = clazz.newInstance();
@@ -544,6 +545,7 @@ public static void main(String[] args) {
544545
System.out.println(javaFile.getAbsolutePath());
545546
}
546547
} catch (Throwable e) {
548+
System.out.println("Error: " + j2sSimpleClazz);
547549
e.printStackTrace();
548550
}
549551
}

0 commit comments

Comments
 (0)