Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4894303

Load multiple taglets from a jar file

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • tbd
    • 1.4.2
    • tools

      Users have asked to be able to put multiple taglets in a single tar file
      and load them, rather than having to call out each taglet separately.

      To solve this problem, we would require that taglet jar files contain
      a particular file in the jar's META-INF/services directory
      that lists all the taglets in that jar. The file would have the qualified
      name of the Taglet interface. See the documentation in sun.misc.Service
      for details. Then a new TagletManager method would look for this file
      in each jar file and load all taglets on the list.

      The -taglet option would not be required.

      The -tag options would be optional. If omitted, the tags would
      be printed in an unspecified order (or in the order specified
      in the file in the services directory?).

      To suppress a tag, they could use the X option:

      -tag todo:X

      Loading the jar file should print the taglets as they are loaded so
      you could be informed of which tag names are being used. This will
      help from overwriting tag names you're already using.

      Does the tagletpath default to the classpath if unspecified? I think
      I read that somewhere. That would make "-tagletpath" optional too,
      which is good.

            pmuthuswamy Priya Lakshmi Muthuswamy (Inactive)
            dkramersunw Douglas Kramer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: