Re: loop with ant

2005-03-01 Thread James Fuller
Maxime FAZENTIEUX wrote: Hi, I want to execute ant tasks in a loop : The Java class : public class TacheEssai extends Task{ public void execute() throws BuildException{ Project projet = this.getProject(); for(int i=0;i<5;i++){ projet.setUserProperty("num_tmp",""+i); projet

Re: loop with ant

2005-03-01 Thread Yves Martin
"Maxime FAZENTIEUX" <[EMAIL PROTECTED]> writes: > PROBLEM : The property num_tmp is always to 0 ! > > How do I can do to change the num_tmp ? Properties in Ant are immutable (in normal usage) You can use 'Project.setProperty' instead of 'Project.setUserProperty' as a work-around. Maybe th

loop with ant

2005-03-01 Thread Maxime FAZENTIEUX
Hi, I want to execute ant tasks in a loop : The Java class : public class TacheEssai extends Task{ public void execute() throws BuildException{ Project projet = this.getProject(); for(int i=0;i<5;i++){ projet.setUserProperty("num_tmp",""+i); projet.executeTarget