< prev index next >
src/jdk.jextract/share/classes/com/sun/tools/jextract/Main.java
Print this page
*** 251,261 ****
Files.createDirectories(dest);
} else if (!Files.isDirectory(dest)) {
ctx.err.println(format("not.a.directory", dest));
return 4;
}
! ctx.collectClassFiles(dest, targetPackage);
} catch (IOException ex) {
ctx.err.println(format("cannot.write.class.file", dest, ex));
if (Main.DEBUG) {
ex.printStackTrace(ctx.err);
}
--- 251,261 ----
Files.createDirectories(dest);
} else if (!Files.isDirectory(dest)) {
ctx.err.println(format("not.a.directory", dest));
return 4;
}
! ctx.collectClassFiles(dest, args, targetPackage);
} catch (IOException ex) {
ctx.err.println(format("cannot.write.class.file", dest, ex));
if (Main.DEBUG) {
ex.printStackTrace(ctx.err);
}
*** 271,281 ****
} else {
outputName = options.nonOptionArguments().get(0) + ".jar";
}
try {
! ctx.collectJarFile(Paths.get(outputName), targetPackage);
} catch (IOException ex) {
ctx.err.println(format("cannot.write.jar.file", outputName, ex));
if (Main.DEBUG) {
ex.printStackTrace(ctx.err);
}
--- 271,281 ----
} else {
outputName = options.nonOptionArguments().get(0) + ".jar";
}
try {
! ctx.collectJarFile(Paths.get(outputName), args, targetPackage);
} catch (IOException ex) {
ctx.err.println(format("cannot.write.jar.file", outputName, ex));
if (Main.DEBUG) {
ex.printStackTrace(ctx.err);
}
< prev index next >