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 22:29:24 GMT
...no problem, your welcome.

Vijay Prasanna wrote:

>thanx a lot W.Lopez, i removed the end XML tag, and ANT gives the proper output.
>
>Vijay
>
>-----Original Message-----
>From: Will Lopez [mailto:william.lopez@eds.com]
>Sent: Wednesday, January 14, 2004 5:20 PM
>To: Ant Users List
>Subject: Re: xmlproperty task
>
>
>sorry...I noticed one more thing
>
><xml version="1.0">
>  <properties>
>  <OSVersion>WIN2000</OSVersion>
>  <unixpath>/export/cvsroot</unixpath>
>  <javapath>E:\j2sdk1.4.2_03\bin</javapath>
>  </properties>
>
>
>..you  have an ending </xml> tag, not needed and *may be* the cause of 
>your problem...remove that and try again...it may be tricking the task 
>to believe that the root is <xml> when it is <properties>
>
>Vijay Prasanna wrote:
>
>  
>
>>no still i get the same ant output as [echo] ${javapath}
>>
>>-----Original Message-----
>>From: Will Lopez [mailto:william.lopez@eds.com]
>>Sent: Wednesday, January 14, 2004 4:34 PM
>>To: Ant Users List
>>Subject: Re: xmlproperty task
>>
>>
>>..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
>>
>>
>>---------------------------------------------------------------------
>>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
>
>  
>


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


Mime
View raw message