ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: loop in ant
Date Tue, 24 Jan 2006 12:38:33 GMT
I would implement my own task...

<del>
  <condition/>
  <path/>
</del>

while condition=true 
do    delete path

and maybe running as asynchronous thread



Jan


>-----Urspr√ľngliche Nachricht-----
>Von: Henrik Gemal [mailto:hege@mail.dk] 
>Gesendet: Dienstag, 24. Januar 2006 13:30
>An: user@ant.apache.org
>Betreff: loop in ant
>
>I need to loop until I can delete a directory. The directory 
>is locked when the user is running a client.
>
>My current code looks like this, but it only checks two times. 
>I really need to loop untill the delete is succesfull.
>
>Can it be done?
>
><var name="test" value="" unset="true" /> <available 
>file="${file}.jar" property="test" /> <if>
>    <equals arg1="${test}" arg2="true" />
>    <then>
>        <delete dir="${dir}" failonerror="false" />
>        <var name="test" value="" unset="true" />
>        <available file="${file}.jar" property="test" />
>        <if>
>            <equals arg1="${test}" arg2="true" />
>            <then>
>                <input>Exit your client and press Enter to 
>continue...</input>
>                <delete dir="${dir}" />
>            </then>
>        </if>
>    </then>
></if>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message