You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Chris Chiasson <ch...@chiasson.name> on 2006/09/05 07:21:00 UTC
XML_CATALOG_FILES with multiple entries
Hello ant users.
I know ant can acquire environment variables by using the following construct:
<property environment="env"/>
I was thinking it would be great to use the following construct
<xmlcatalog id="xml-catalog" classpath="${env.XML_CATALOG_FILES}"/>
to capture the XML_CATALOG_FILES environment variable into a path
structure. Then I thought about the fact that XML_CATALOG_FILES uses a
"protocol - type" path notation, where colons appear in the path.
The question:
I am wondering if ant will correctly parse the XML_CATALOG_FILES
environment variable if it is structured as found here:
http://mail.gnome.org/archives/xml/2002-October/msg00026.html
i.e.
XML_CATALOG_FILES=file:///etc/catalog:http://catsrv/catalog
Even if there were only one file in that path, it still seems like the
colon therein would cause ant to separate it into two paths, file and
///etc/catalog
What am I missing that would allow this to work?
--
http://chris.chiasson.name/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: XML_CATALOG_FILES with multiple entries
Posted by "Scot P. Floess" <fl...@mindspring.com>.
You may need to escape the colon after the protocol...something like:
XML_CATALOG_FILES=file\://etc/catalog:http\://catsrv/catalog
Chris Chiasson wrote:
> Hello ant users.
>
> I know ant can acquire environment variables by using the following
> construct:
> <property environment="env"/>
>
> I was thinking it would be great to use the following construct
> <xmlcatalog id="xml-catalog" classpath="${env.XML_CATALOG_FILES}"/>
>
> to capture the XML_CATALOG_FILES environment variable into a path
> structure. Then I thought about the fact that XML_CATALOG_FILES uses a
> "protocol - type" path notation, where colons appear in the path.
>
> The question:
> I am wondering if ant will correctly parse the XML_CATALOG_FILES
> environment variable if it is structured as found here:
>
> http://mail.gnome.org/archives/xml/2002-October/msg00026.html
>
> i.e.
>
> XML_CATALOG_FILES=file:///etc/catalog:http://catsrv/catalog
>
> Even if there were only one file in that path, it still seems like the
> colon therein would cause ant to separate it into two paths, file and
> ///etc/catalog
>
> What am I missing that would allow this to work?
>
--
Scot P. Floess
27 Lake Royale
Louisburg, NC 27549
252-478-8087 (Home)
919-754-4592 (Work)
Chief Architect JPlate http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org