Lord of all beginners here.
I'm trying to make a target in a build.xml that restarts itself when it meets a certain condition. I've searched high and low and I can't come up with a solution to make the target...well...loop. I'm stuck on this and it's driving me crazy, so any help is welcomed.
Edit: This is the target I want to loop:
<target name="prog" description="executes program">
<parallel>
<daemons>
<exec executable="mch" />
</daemons>
</parallel>
<exec executable="calculator" inputstring="$var">
<redirector output="log.txt" />
</exec>
<delete file="log.txt" />
</target>
The executable creates a file when it closes without finishing. So my loop condition would be if that file exists or not.