Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

help required: while loops and break

Help
Hovav
2012-12-27
2013-04-24
  • Hovav
    Hovav
    2012-12-27

    hi
    I'm using ant-contrib for-loop to execute java tasks on a list of values, for that I added a task of my own that extends the "net.sf.antcontrib.logic.ForTask" class.
    1. I want to have the ability to break the for loop from the java task execution, does there any way to do so?
    2. I also want to add "while" and "do-while" loops, is there any way to do it?
    3. is there a way to change the for-loop list during execution or to change the current iteration item in the list? (it might resolve both break and while issues even if there are no such solutions available…)

    thanks for your help!

    Hovav