ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
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 -Djava.protocol.handler.pkgs=com.lgc.java.net.protocol
(for example), and you have a com.lgc.java.net.protocol.resource.Handler
custom URL protocol handler like us (or the equivalent class in JBoss or
ClassWorlds), then you could specify the stylesheet as

	"resource://com/acme/style/SuperTransform.xsl".

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.

--DD

-----Original Message-----
From: Nau, Michael [mailto:Michael.Nau@pyxis.com] 
Sent: Thursday, January 16, 2003 9:32 PM
To: ant-user@jakarta.apache.org
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?

Thanks,
Mike.

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message