1 /*
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
210 task.options.exitOnError = true;
211 }
212 }, new Option(" --info Print information during compilation", false, "--info") {
213 @Override
214 void process(Main task, String opt, String arg) throws BadArgs {
215 task.options.info = true;
216 }
217 }, new Option(" --verbose Print verbose information", false, "--verbose") {
218 @Override
219 void process(Main task, String opt, String arg) throws BadArgs {
220 task.options.info = true;
221 task.options.verbose = true;
222 }
223 }, new Option(" --debug Print debug information", false, "--debug") {
224 @Override
225 void process(Main task, String opt, String arg) throws BadArgs {
226 task.options.info = true;
227 task.options.verbose = true;
228 task.options.debug = true;
229 }
230 }, new Option(" --help Print this usage message", false, "--help") {
231 @Override
232 void process(Main task, String opt, String arg) {
233 task.options.help = true;
234 }
235 }, new Option(" --version Version information", false, "--version") {
236 @Override
237 void process(Main task, String opt, String arg) {
238 task.options.version = true;
239 }
240 }, new Option(" --linker-path Full path to linker executable", true, "--linker-path") {
241 @Override
242 void process(Main task, String opt, String arg) {
243 task.options.linkerpath = arg;
244 }
245 }, new Option(" -J<flag> Pass <flag> directly to the runtime system", false, "-J") {
246 @Override
247 void process(Main task, String opt, String arg) {
248 }
249 }};
250
|
1 /*
2 * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
210 task.options.exitOnError = true;
211 }
212 }, new Option(" --info Print information during compilation", false, "--info") {
213 @Override
214 void process(Main task, String opt, String arg) throws BadArgs {
215 task.options.info = true;
216 }
217 }, new Option(" --verbose Print verbose information", false, "--verbose") {
218 @Override
219 void process(Main task, String opt, String arg) throws BadArgs {
220 task.options.info = true;
221 task.options.verbose = true;
222 }
223 }, new Option(" --debug Print debug information", false, "--debug") {
224 @Override
225 void process(Main task, String opt, String arg) throws BadArgs {
226 task.options.info = true;
227 task.options.verbose = true;
228 task.options.debug = true;
229 }
230 }, new Option(" -? -h --help Print this help message", false, "--help", "-h", "-?") {
231 @Override
232 void process(Main task, String opt, String arg) {
233 task.options.help = true;
234 }
235 }, new Option(" --version Version information", false, "--version") {
236 @Override
237 void process(Main task, String opt, String arg) {
238 task.options.version = true;
239 }
240 }, new Option(" --linker-path Full path to linker executable", true, "--linker-path") {
241 @Override
242 void process(Main task, String opt, String arg) {
243 task.options.linkerpath = arg;
244 }
245 }, new Option(" -J<flag> Pass <flag> directly to the runtime system", false, "-J") {
246 @Override
247 void process(Main task, String opt, String arg) {
248 }
249 }};
250
|