ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David McTavish <dmctav...@sandvine.com>
Subject RE: <delete quiet="true" failonerror="true">
Date Tue, 12 Aug 2003 16:21:07 GMT
or exec out to rm
<exec executable="rm">
    <arg line="-f files*"/>
</exec>

I've switched most of my delete requests to this now... delete task needs
some overhaul hopefully for 1.7 :)
d.

-----Original Message-----
From: Matt Benson [mailto:gudnabrsam@yahoo.com]
Sent: Tuesday, August 12, 2003 12:18 PM
To: Ant Users List
Subject: Re: <delete quiet="true" failonerror="true">


I wouldn't think this would be worth writing a custom
task.  You could use different tricks:

verify that the file exists before attempting to
delete it, then use failonerror="true", or

verify it is gone after deletion, <fail>ing if the
file still exists.

-Matt

--- Jack Woehr <jax@purematrix.com> wrote:
> Greeting fellow Formicators :-)
> 
> This tag <delete quiet="true" failonerror="true"> is
> of course 
> impossible. What I would like to do is delete
> quietly if the file 
> doesn't exist but fail if the file is undeletable.
> This seems to be 
> impossible in the current level of Ant (_sans_
> writing a custom task), 
> am I correct?
> 
> Thank you.
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
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