You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/12/02 19:36:14 UTC
DO NOT REPLY [Bug 25147] New: -
Get Maven to generate TLD files with XSL
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25147>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25147
Get Maven to generate TLD files with XSL
Summary: Get Maven to generate TLD files with XSL
Product: Struts
Version: Nightly Build
Platform: All
OS/Version: All
Status: NEW
Severity: Enhancement
Priority: Other
Component: Unknown
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: Joe@Germuska.com
The two attached patches (to maven.xml and project.properties) provide a maven goal to generate
the TLD files by XSL transformation. This is just a small piece -- another step will need to be
added to copy the transformed files into the output jar (or perhaps this goal could be defined as a
pre-goal and the transformation results could be put into a defined "resources" directory (change
to project.xml) so that they would be copied by a normal maven task.
One sticky bit is that one must add an XSLT transformer to Maven's lib directory -- I tried doing it
by adding Xalan to project.xml, but that doesn't work. Remember that you will also have to use
JAXP standard techniques to specify your preferred transformer -- what I did was copy
${user.home}/.maven/repository/xalan/jars/xalan-2.4.1.jar to $MAVEN_HOME/lib/endorsed; the
Xalan jar has a META-INF file to register itself as a JAXP transformer provider, and you must put it
in the "endorsed" directory because it includes org.w3c classes
It would be nice if that could be automated, but I guess people have had to install a transformer in
Ant's lib dir already.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org