1 /* |
1 /* |
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
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 |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
350 String[] os = options[oi]; |
350 String[] os = options[oi]; |
351 String opt = os[0].toLowerCase(); |
351 String opt = os[0].toLowerCase(); |
352 if (opt.equals("-d")) { |
352 if (opt.equals("-d")) { |
353 destDirName = addTrailingFileSep(os[1]); |
353 destDirName = addTrailingFileSep(os[1]); |
354 docFileDestDirName = destDirName; |
354 docFileDestDirName = destDirName; |
355 } else if (opt.equals("-docfilessubdirs")) { |
355 } else if (opt.equals("-docfilessubdirs")) { |
356 copydocfilesubdirs = true; |
356 copydocfilesubdirs = true; |
357 } else if (opt.equals("-docencoding")) { |
357 } else if (opt.equals("-docencoding")) { |
358 docencoding = os[1]; |
358 docencoding = os[1]; |
359 } else if (opt.equals("-encoding")) { |
359 } else if (opt.equals("-encoding")) { |
360 encoding = os[1]; |
360 encoding = os[1]; |
361 } else if (opt.equals("-author")) { |
361 } else if (opt.equals("-author")) { |
362 showauthor = true; |
362 showauthor = true; |
363 } else if (opt.equals("-version")) { |
363 } else if (opt.equals("-nosince")) { |
|
364 nosince = true; |
|
365 } else if (opt.equals("-version")) { |
364 showversion = true; |
366 showversion = true; |
365 } else if (opt.equals("-nodeprecated")) { |
367 } else if (opt.equals("-nodeprecated")) { |
366 nodeprecated = true; |
368 nodeprecated = true; |
367 } else if (opt.equals("-sourcepath")) { |
369 } else if (opt.equals("-sourcepath")) { |
368 sourcepath = os[1]; |
370 sourcepath = os[1]; |
369 } else if (opt.equals("-classpath") && |
371 } else if (opt.equals("-classpath") && |
370 sourcepath.length() == 0) { |
372 sourcepath.length() == 0) { |
371 sourcepath = os[1]; |
373 sourcepath = os[1]; |
372 } else if (opt.equals("-excludedocfilessubdir")) { |
374 } else if (opt.equals("-excludedocfilessubdir")) { |
386 } |
388 } |
387 if (sourcetab <= 0) { |
389 if (sourcetab <= 0) { |
388 message.warning("doclet.sourcetab_warning"); |
390 message.warning("doclet.sourcetab_warning"); |
389 sourcetab = DocletConstants.DEFAULT_TAB_STOP_LENGTH; |
391 sourcetab = DocletConstants.DEFAULT_TAB_STOP_LENGTH; |
390 } |
392 } |
391 } else if (opt.equals("-notimestamp")) { |
393 } else if (opt.equals("-notimestamp")) { |
392 notimestamp = true; |
394 notimestamp = true; |
393 } else if (opt.equals("-nocomment")) { |
395 } else if (opt.equals("-nocomment")) { |
394 nocomment = true; |
396 nocomment = true; |
395 } else if (opt.equals("-tag") || opt.equals("-taglet")) { |
397 } else if (opt.equals("-tag") || opt.equals("-taglet")) { |
396 customTagStrs.add(os); |
398 customTagStrs.add(os); |
397 } else if (opt.equals("-tagletpath")) { |
399 } else if (opt.equals("-tagletpath")) { |
398 tagletpath = os[1]; |
400 tagletpath = os[1]; |
399 } else if (opt.equals("-keywords")) { |
401 } else if (opt.equals("-keywords")) { |
400 keywords = true; |
402 keywords = true; |
401 } else if (opt.equals("-serialwarn")) { |
403 } else if (opt.equals("-serialwarn")) { |
402 serialwarn = true; |
404 serialwarn = true; |
403 } else if (opt.equals("-group")) { |
405 } else if (opt.equals("-group")) { |
404 group.checkPackageGroups(os[1], os[2]); |
406 group.checkPackageGroups(os[1], os[2]); |
405 } else if (opt.equals("-link")) { |
407 } else if (opt.equals("-link")) { |
406 String url = os[1]; |
408 String url = os[1]; |