I have a list of strings (for example, "piyush, kumar") in an Ant script for which I want to assign piyush to var1, for example <var name="var1" value="piyush"/> and kumar , for var2, like <var name="var2" value="kumar"/> .
So far, I am using the build file, for example:
<?xml version="1.0"?> <project name="cutter" default="cutter"> <target name="cutter"> <for list="piyush,kumar" param="letter"> <sequential> <echo>var1 @{letter}</echo> </sequential> </for> </target> </project>
I'm not sure how to do this - any suggestions?
source share