321 helper.jdtoolOpts.put(XCLASSES, true);
322 }
323 },
324
325 DUMPONERROR("--dump-on-error", HIDDEN) {
326 @Override
327 public void process(Helper helper) {
328 helper.dumpOnError = true;
329 }
330 },
331
332 IGNORE_SOURCE_ERRORS("--ignore-source-errors", HIDDEN) {
333 @Override
334 public void process(Helper helper) {
335 helper.jdtoolOpts.put(IGNORE_SOURCE_ERRORS, true);
336 }
337 },
338
339 // ----- help options -----
340
341 HELP("--help -help", STANDARD) {
342 @Override
343 public void process(Helper helper) throws OptionException {
344 throw new OptionException(OK, helper::usage);
345 }
346 },
347
348 HELP_EXTRA("--help-extra -X", STANDARD) {
349 @Override
350 public void process(Helper helper) throws OptionException {
351 throw new OptionException(OK, helper::Xusage);
352 }
353 },
354
355 // This option exists only for the purpose of documenting itself.
356 // It's actually implemented by the launcher.
357 J("-J", STANDARD, true) {
358 @Override
359 public void process(Helper helper) {
360 throw new AssertionError("the -J flag should be caught by the launcher.");
361 }
|
321 helper.jdtoolOpts.put(XCLASSES, true);
322 }
323 },
324
325 DUMPONERROR("--dump-on-error", HIDDEN) {
326 @Override
327 public void process(Helper helper) {
328 helper.dumpOnError = true;
329 }
330 },
331
332 IGNORE_SOURCE_ERRORS("--ignore-source-errors", HIDDEN) {
333 @Override
334 public void process(Helper helper) {
335 helper.jdtoolOpts.put(IGNORE_SOURCE_ERRORS, true);
336 }
337 },
338
339 // ----- help options -----
340
341 HELP("--help -h -?", STANDARD) {
342 @Override
343 public void process(Helper helper) throws OptionException {
344 throw new OptionException(OK, helper::usage);
345 }
346 },
347
348 HELP_EXTRA("--help-extra -X", STANDARD) {
349 @Override
350 public void process(Helper helper) throws OptionException {
351 throw new OptionException(OK, helper::Xusage);
352 }
353 },
354
355 // This option exists only for the purpose of documenting itself.
356 // It's actually implemented by the launcher.
357 J("-J", STANDARD, true) {
358 @Override
359 public void process(Helper helper) {
360 throw new AssertionError("the -J flag should be caught by the launcher.");
361 }
|