439 * Initialize the taglet manager. The strings to initialize the simple custom tags should |
439 * Initialize the taglet manager. The strings to initialize the simple custom tags should |
440 * be in the following format: "[tag name]:[location str]:[heading]". |
440 * be in the following format: "[tag name]:[location str]:[heading]". |
441 * @param customTagStrs the set two dimentional arrays of strings. These arrays contain |
441 * @param customTagStrs the set two dimentional arrays of strings. These arrays contain |
442 * either -tag or -taglet arguments. |
442 * either -tag or -taglet arguments. |
443 */ |
443 */ |
444 private void initTagletManager(Set customTagStrs) { |
444 private void initTagletManager(Set<String[]> customTagStrs) { |
445 tagletManager = tagletManager == null ? |
445 tagletManager = tagletManager == null ? |
446 new TagletManager(nosince, showversion, showauthor, message) : |
446 new TagletManager(nosince, showversion, showauthor, message) : |
447 tagletManager; |
447 tagletManager; |
448 String[] args; |
448 String[] args; |
449 for (Iterator it = customTagStrs.iterator(); it.hasNext(); ) { |
449 for (Iterator<String[]> it = customTagStrs.iterator(); it.hasNext(); ) { |
450 args = (String[]) it.next(); |
450 args = it.next(); |
451 if (args[0].equals("-taglet")) { |
451 if (args[0].equals("-taglet")) { |
452 tagletManager.addCustomTag(args[1], tagletpath); |
452 tagletManager.addCustomTag(args[1], tagletpath); |
453 continue; |
453 continue; |
454 } |
454 } |
455 String[] tokens = Util.tokenize(args[1], |
455 String[] tokens = Util.tokenize(args[1], |