equal
deleted
inserted
replaced
44 * |
44 * |
45 * @param args command line arguments |
45 * @param args command line arguments |
46 */ |
46 */ |
47 public static void main(String... args) throws Exception { |
47 public static void main(String... args) throws Exception { |
48 // Create logger with default system.out and system.err |
48 // Create logger with default system.out and system.err |
49 Log.Logger logger = new Log.Logger(false); |
49 Log.setLogger(null); |
50 Log.setLogger(logger); |
|
51 |
50 |
52 int status = new jdk.jpackage.main.Main().execute(args); |
51 int status = new jdk.jpackage.main.Main().execute(args); |
53 System.exit(status); |
52 System.exit(status); |
54 } |
53 } |
55 |
54 |
61 * @param args command line arguments |
60 * @param args command line arguments |
62 * @return an exit code. 0 means success, non-zero means an error occurred. |
61 * @return an exit code. 0 means success, non-zero means an error occurred. |
63 */ |
62 */ |
64 public int execute(PrintWriter out, PrintWriter err, String... args) { |
63 public int execute(PrintWriter out, PrintWriter err, String... args) { |
65 // Create logger with provided streams |
64 // Create logger with provided streams |
66 Log.Logger logger = new Log.Logger(false); |
65 Log.Logger logger = new Log.Logger(); |
67 logger.setPrintWriter(out, err); |
66 logger.setPrintWriter(out, err); |
68 Log.setLogger(logger); |
67 Log.setLogger(logger); |
69 |
68 |
70 return execute(args); |
69 return execute(args); |
71 } |
70 } |