238 * used.Default is don't show version information. |
238 * used.Default is don't show version information. |
239 */ |
239 */ |
240 public boolean showversion = false; |
240 public boolean showversion = false; |
241 |
241 |
242 /** |
242 /** |
243 * Sourcepath from where to read the source files. Default is classpath. |
|
244 * |
|
245 */ |
|
246 public String sourcepath = ""; |
|
247 |
|
248 /** |
|
249 * Don't generate deprecated API information at all, if -nodeprecated |
243 * Don't generate deprecated API information at all, if -nodeprecated |
250 * option is used. <code>nodepracted</code> is set to true if |
244 * option is used. <code>nodepracted</code> is set to true if |
251 * -nodeprecated option is used. Default is generate deprected API |
245 * -nodeprecated option is used. Default is generate deprected API |
252 * information. |
246 * information. |
253 */ |
247 */ |
387 optionsProcessed.add(this); |
381 optionsProcessed.add(this); |
388 showauthor = true; |
382 showauthor = true; |
389 return true; |
383 return true; |
390 } |
384 } |
391 }, |
385 }, |
392 new Hidden(this, "classpath", 1) { |
|
393 @Override |
|
394 public boolean process(String opt, ListIterator<String> args) { |
|
395 if (sourcepath.length() == 0) { |
|
396 optionsProcessed.add(this); |
|
397 sourcepath = args.next(); |
|
398 } |
|
399 return true; |
|
400 } |
|
401 }, |
|
402 new Hidden(this, "cp", 1) { |
|
403 @Override |
|
404 public boolean process(String opt, ListIterator<String> args) { |
|
405 if (sourcepath.length() == 0) { |
|
406 optionsProcessed.add(this); |
|
407 sourcepath = args.next(); |
|
408 } |
|
409 return true; |
|
410 } |
|
411 }, |
|
412 new Option(this, "d", 1) { |
386 new Option(this, "d", 1) { |
413 @Override |
387 @Override |
414 public boolean process(String opt, ListIterator<String> args) { |
388 public boolean process(String opt, ListIterator<String> args) { |
415 optionsProcessed.add(this); |
389 optionsProcessed.add(this); |
416 destDirName = addTrailingFileSep(args.next()); |
390 destDirName = addTrailingFileSep(args.next()); |
550 new Option(this, "serialwarn") { |
524 new Option(this, "serialwarn") { |
551 @Override |
525 @Override |
552 public boolean process(String opt, ListIterator<String> args) { |
526 public boolean process(String opt, ListIterator<String> args) { |
553 optionsProcessed.add(this); |
527 optionsProcessed.add(this); |
554 serialwarn = true; |
528 serialwarn = true; |
555 return true; |
|
556 } |
|
557 }, |
|
558 new Hidden(this, "sourcepath", 1) { |
|
559 @Override |
|
560 public boolean process(String opt, ListIterator<String> args) { |
|
561 optionsProcessed.add(this); |
|
562 sourcepath = args.next(); |
|
563 return true; |
529 return true; |
564 } |
530 } |
565 }, |
531 }, |
566 new Option(this, "sourcetab", 1) { |
532 new Option(this, "sourcetab", 1) { |
567 @Override |
533 @Override |
636 ensureOutputDirExists(); |
602 ensureOutputDirExists(); |
637 if (urlForLink != null && pkglistUrlForLink != null) |
603 if (urlForLink != null && pkglistUrlForLink != null) |
638 extern.link(urlForLink, pkglistUrlForLink, reporter, false); |
604 extern.link(urlForLink, pkglistUrlForLink, reporter, false); |
639 if (urlForLinkOffline != null && pkglistUrlForLinkOffline != null) |
605 if (urlForLinkOffline != null && pkglistUrlForLinkOffline != null) |
640 extern.link(urlForLinkOffline, pkglistUrlForLinkOffline, reporter, true); |
606 extern.link(urlForLinkOffline, pkglistUrlForLinkOffline, reporter, true); |
641 if (sourcepath.length() == 0) { |
|
642 sourcepath = System.getProperty("env.class.path", ""); |
|
643 } |
|
644 if (docencoding == null) { |
607 if (docencoding == null) { |
645 docencoding = encoding; |
608 docencoding = encoding; |
646 } |
609 } |
647 typeElementCatalog = new TypeElementCatalog(utils.getSpecifiedClasses(), this); |
610 typeElementCatalog = new TypeElementCatalog(utils.getSpecifiedClasses(), this); |
648 initTagletManager(customTagStrs); |
611 initTagletManager(customTagStrs); |