-
Enhancement
-
Resolution: Duplicate
-
P3
-
1.4.2
-
generic
-
other
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.
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.
- duplicates
-
JDK-8219958 Automatically load taglets from a jar file
-
- Resolved
-