ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anand Krishniyer <akris...@savvion.com>
Subject xmltask question
Date Wed, 29 Jun 2005 02:06:27 GMT
Hi
I have an xml file that has different paths for each file. Something 
like this
<files>
  <file name="a.jar" type="jar">
      <Location>"c:/1"</Location>
      <Location>"c:/2"</Location>
  </file>
  <file name="b.conf" type="conf">
      <Location>"e:/1"</Location>
      <Location>"e:/2"</Location>
      <Location>"e:/3"</Location>
  </file>  
</files>

I use XmlTask to iteratively get each location for each file (I use 
"call" to call another target for each location for each file). The 
problem is I get the location as a string, I need it as a path to 
process further.
For e.g I need to copy a.jar to both c:\1 and c:\2 locations. But when I 
use

<xmltask>
    <call path="files/file[@name='${jarfilename}']/Location" 
target="DiffTarget">
        <param name="filename" path="../@name"/>
        <param name="val" path="text()"/>
      </call>   
    </xmltask>

I get the "val" as string, how do I get it as path?

Thanks in advance.

Regards
Anand

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


Mime
View raw message