76 */ |
76 */ |
77 public String tagletpath = ""; |
77 public String tagletpath = ""; |
78 |
78 |
79 /** |
79 /** |
80 * This is true if option "-serialwarn" is used. Defualt value is false to |
80 * This is true if option "-serialwarn" is used. Defualt value is false to |
81 * supress excessive warnings about serial tag. |
81 * suppress excessive warnings about serial tag. |
82 */ |
82 */ |
83 public boolean serialwarn = false; |
83 public boolean serialwarn = false; |
84 |
84 |
85 /** |
85 /** |
86 * The specified amount of space between tab stops. |
86 * The specified amount of space between tab stops. |
444 |
444 |
445 |
445 |
446 /** |
446 /** |
447 * Initialize the taglet manager. The strings to initialize the simple custom tags should |
447 * Initialize the taglet manager. The strings to initialize the simple custom tags should |
448 * be in the following format: "[tag name]:[location str]:[heading]". |
448 * be in the following format: "[tag name]:[location str]:[heading]". |
449 * @param customTagStrs the set two dimentional arrays of strings. These arrays contain |
449 * @param customTagStrs the set two dimensional arrays of strings. These arrays contain |
450 * either -tag or -taglet arguments. |
450 * either -tag or -taglet arguments. |
451 */ |
451 */ |
452 private void initTagletManager(Set<String[]> customTagStrs) { |
452 private void initTagletManager(Set<String[]> customTagStrs) { |
453 tagletManager = tagletManager == null ? |
453 tagletManager = tagletManager == null ? |
454 new TagletManager(nosince, showversion, showauthor, message) : |
454 new TagletManager(nosince, showversion, showauthor, message) : |
455 tagletManager; |
455 tagletManager; |
456 String[] args; |
456 String[] args; |
457 for (Iterator<String[]> it = customTagStrs.iterator(); it.hasNext(); ) { |
457 for (Iterator<String[]> it = customTagStrs.iterator(); it.hasNext(); ) { |
458 args = it.next(); |
458 args = it.next(); |
459 if (args[0].equals("-taglet")) { |
459 if (args[0].equals("-taglet")) { |
460 tagletManager.addCustomTag(args[1], tagletpath); |
460 tagletManager.addCustomTag(args[1], getFileManager(), tagletpath); |
461 continue; |
461 continue; |
462 } |
462 } |
463 String[] tokens = tokenize(args[1], |
463 String[] tokens = tokenize(args[1], |
464 TagletManager.SIMPLE_TAGLET_OPT_SEPERATOR, 3); |
464 TagletManager.SIMPLE_TAGLET_OPT_SEPARATOR, 3); |
465 if (tokens.length == 1) { |
465 if (tokens.length == 1) { |
466 String tagName = args[1]; |
466 String tagName = args[1]; |
467 if (tagletManager.isKnownCustomTag(tagName)) { |
467 if (tagletManager.isKnownCustomTag(tagName)) { |
468 //reorder a standard tag |
468 //reorder a standard tag |
469 tagletManager.addNewSimpleCustomTag(tagName, null, ""); |
469 tagletManager.addNewSimpleCustomTag(tagName, null, ""); |