ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sekar Varatharajan" <svar...@rnm.ca>
Subject Help - Passing Dynamic Values inside Script
Date Wed, 25 Jul 2001 17:54:20 GMT
Hi all,
I want to call a target from with an Script(java Script) which is in a loop
and i want to set a property value to be change on each iteration.
How can i do that???



i.e


Script
{
for (i=0;i<=10;i++)
{
project.setProperty("projectName", "Value");
project.executeTarget("myTarget");
}

<target name="myTarget">
<cvsProject name = "${projectName}"
</target>


Now i want the Value of property "projectName" to be dynamically changing
for each iteration. The Best thing would be if i can read all those listed
"projectName" values from somewhere and pass it inside the Loop Each time
and set the property value each time.
Any Suggestions ???


Mime
View raw message