Hello Michael, You could make your task accept a package path such as...
javanccss/resources/exception-javancss.xml Then, internally, you could load this as a stream. I don't know if that just makes things too non-standard compared to most other Ant tasks, but it is certainly doable. Jake Thursday, January 16, 2003, 9:31:47 PM, you wrote: NM> Does anyone know of a way to load an xsl stylesheet from a jar file NM> rather than a path off the basedir? NM> I would like to repackage the javancss stuff to include the stylesheets NM> in the javancss.jar then load the stylesheet from the jar in ant. This NM> would ease the issues of having to keep track of both the stylesheets NM> and the jars separately. NM> Any ideas? NM> Thanks, NM> Mike. NM> sample code NM> =========== NM> <path id="javancss.cp"> NM> <pathelement location="${dev.lib.dir}/javancss-xslt.jar"/> NM> </path> NM> <taskdef name="javancss" classname="javancss.JavancssAntTask" NM> classpathref="javancss.cp"/> NM> <javancss NM> srcdir = "${dev.src.dir}" NM> packageMetrics = "true" NM> classMetrics = "false" NM> functionMetrics = "falase" NM> abortOnFail = "false" NM> generateReport = "true" NM> outputfile = "${build.lib.dir}/exception-javancss.xml" NM> format = "xml" NM> includes = "**/*.java" NM> /> NM> <xslt NM> in="${build.lib.dir}/exception-javancss.xml" NM> out="${build.lib.dir}/exception-javancss.html" NM> style="javancss2html.xsl" NM> classpathref="javancss.cp" NM> /> NM> -- NM> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> NM> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Best regards, Jacob mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>