ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: Constructing a file with a repeating group
Date Thu, 18 Mar 2004 13:41:21 GMT
Using AntContrib and XMLTask (see external task page).
- ac:for for iterating over the list
- xmltask:insert for inserting the <jar>-part

Jan

> -----Original Message-----
> From: Tim Gordon [mailto:tim.gordon@allustra.com]
> Sent: Thursday, March 18, 2004 2:36 PM
> To: 'Ant Users List'
> Subject: Constructing a file with a repeating group
> 
> 
> I'm trying to construct a jnlp file where the list of jars in the
> resources section is partially driven from a property, such as
> 
> <property name="module.jars" value="app1.jar,app2.jar"/>
> 
> What I'm after in my produced file is something like:
> 
>   ...
>   <resources>
>     <j2se version="1.4" max-heap-size="192m"/>
>     <jar href="core.jar" download="eager"/>
>     <jar href="app1.jar" download="eager"/>
>     <jar href="app2.jar" download="eager"/>
>   </resources>
>   ...
> 
> Any ideas? There's effectively a static header with a repeating line
> templatised by a parameter and a static footer.
> 
> Unfortunately you can't use entities in jnlp files, otherwise 
> this would
> have been pretty easy.
>  
> I'm using Ant-contrib and Antelope too, if that fuels anyone's
> idea-centres.
> 
> Thanks
> 
> Tim Gordon
> 
> Allustra Limited
> 85 Gracechurch Street
> London
> EC3V 0AA
> Tel 020 7469 8640
> Fax 020 7469 8689
> http://www.allustra.com/ 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message