< prev index next >

jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/JlinkTask.java

Print this page

        

*** 151,161 **** private static final OptionsHelper<JlinkTask> optionsHelper = taskHelper.newOptionsHelper(JlinkTask.class, recognizedOptions); private PrintWriter log; ! void setLog(PrintWriter out) { log = out; taskHelper.setLog(log); } /** --- 151,161 ---- private static final OptionsHelper<JlinkTask> optionsHelper = taskHelper.newOptionsHelper(JlinkTask.class, recognizedOptions); private PrintWriter log; ! void setLog(PrintWriter out, PrintWriter err) { log = out; taskHelper.setLog(log); } /**
*** 180,190 **** ByteOrder endian = ByteOrder.nativeOrder(); } int run(String[] args) { if (log == null) { ! setLog(new PrintWriter(System.out, true)); } try { optionsHelper.handleOptions(this, args); if (options.help) { optionsHelper.showHelp(PROGNAME); --- 180,191 ---- ByteOrder endian = ByteOrder.nativeOrder(); } int run(String[] args) { if (log == null) { ! setLog(new PrintWriter(System.out, true), ! new PrintWriter(System.err, true)); } try { optionsHelper.handleOptions(this, args); if (options.help) { optionsHelper.showHelp(PROGNAME);
< prev index next >