ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: Loading stylesheets from a jar file (<xslt> task)
Date Fri, 17 Jan 2003 14:46:37 GMT
Yes and no...

If <style> accepted a URL instead of a file name, and you started Ant with
an ANT_OPTS that adds
(for example), and you have a
custom URL protocol handler like us (or the equivalent class in JBoss or
ClassWorlds), then you could specify the stylesheet as


Unfortunately, many Ant tasks accept only file names instead of URLs, just
like <style>... I think I saw a recent BugZilla entry along the same line,
probably for another specific task.


-----Original Message-----
From: Nau, Michael [] 
Sent: Thursday, January 16, 2003 9:32 PM
Subject: Loading stylesheets from a jar file (<xslt> task)

Does anyone know of a way to load an xsl stylesheet from a jar file
rather than a path off the basedir?

I would like to repackage the javancss stuff to include the stylesheets
in the javancss.jar then load the stylesheet from the jar in ant. This
would ease the issues of having to keep track of both the stylesheets
and the jars separately.

Any ideas?


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message