ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Will Lopez <william.lo...@eds.com>
Subject Re: xmlproperty task
Date Wed, 14 Jan 2004 21:33:56 GMT
..not tested but I believe if you turn on the *semanticAttributes 
*attribute it turns on property reference resolution.
Try this:

<xmlproperty file="C:\xmlprop.xml" keeproot="false"
	     semanticAttributes="true" />



Vijay Prasanna wrote:

>Hi,
>         I'm trying to load a xml file containing properties, using 'xmlproperty' task,
 the ant script  is
>
>        <xmlproperty file = "C:\xmlprop.xml" keeproot = "false"/>
>        <echo message = "${javapath}"/>
>       The contents of xmlprop.xml file is 
>         
> <xml version="1.0">
>   <properties>
>   <OSVersion>WIN2000</OSVersion>
>   <unixpath>/export/cvsroot</unixpath>
>   <javapath>E:\j2sdk1.4.2_03\bin</javapath>
>   </properties>
></xml>  
>                  but the ant output is       [echo] ${javapath}.    where am i wrong.
>
>vijay
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>  
>


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


Mime
View raw message