ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edwin.Guenth...@Compart.net
Subject "Foreach"-task?
Date Mon, 29 Jan 2001 13:26:16 GMT
Hello co-ants,

I need to run  code like this:

  <java
     classname="com.company.MyNLSCompiler">
     dir="resources/nls_XX"
     fork="true">
     <classpath refid="compiler-classes" />
     <arg value="-v" />
     <arg value="-d=dist/classes/resources/nls_XX" />
     <arg value="${input_files}" />
   </java>

where XX has values like "de", en, and so on.

It would be nice to have something like

<foreach token_in_set="de en ..">
  <java
     classname="com.company.MyNLSCompiler">
     dir="resources/nls_${token}"
     fork="true">
     <classpath refid="compiler-classes" />
     <arg value="-v" />
     <arg value="-d=dist/classes/resources/nls_${token}" />
     <arg value="${input_files}" />
   </java>
</foreach>

Just wondering: is there something like <foreach> available?
Or do I need to write it my own task - or is there a better way to solve
this
problem?

greetings,

edwin g√ľnthner


Mime
View raw message