ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From canadatom <>
Subject Re: AW: Ant xmlproperty question
Date Fri, 26 Feb 2010 14:43:40 GMT

thanks for reply, I used xmlproperty, now I am trying to extract url from

  <project reference="v1.0,http://blahblahblah1,desc1"/>
  <project reference="v1.1,http://blahblahblah2,desc2"/>
  <project reference="v1.2,http://blahblahblah3,desc3"/>

<for list="${psf.project.reference}" param="ref">
	            <propertyregex property="url" input="@{ref}"
regexp="(http)(.*)" select="\0"/>
The above code doesn't work properly, please advice. Is there a better way
to do it?


Jan.Materne wrote:
> You could try <xmlproperty>.
> The solution which costs the most time is creating a XSLT which transforms
> that xml into a property file. Then just load that generated property
> file.
> Jan 
>>-----Urspr√ľngliche Nachricht-----
>>Von: canadatom [] 
>>Gesendet: Donnerstag, 25. Februar 2010 16:30
>>Betreff: Ant xmlproperty question
>>Hi all, I am new to ant, here is a simple task I want to do:
>>using xml to parse a xml and get a certain attribute off the xml.
>>example xml
>>  <project reference="v1.0,http://blahblahblah1,desc1"/>
>>  <project reference="v1.1,http://blahblahblah2,desc2"/>
>>  <project reference="v1.2,http://blahblahblah3,desc3"/>
>>How can I echo a list of project reference? 
>>thanks for helping
>>View this message in context: 
>>Sent from the Ant - Users mailing list archive at
>>To unsubscribe, e-mail:
>>For additional commands, e-mail:
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message