ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Cross <nick.cr...@prismtechnologies.com>
Subject Re: delete task shouldn't fail but it does
Date Tue, 08 Jan 2002 12:12:07 GMT
ROBERT.WORTH@jpmorgan.com wrote:
> 
> I have a build script containing a delete task as follows:
> 
>         <delete includeEmptyDirs="true" >
>             <fileset dir="jsp" />
>         </delete>
> 
> The intention is to delete the jsp directory in ${webinf}.  If jsp is there it gets deleted.
Fine.  But if it is not already there the build fails
> saying "blah\blah\jsp not found".
> 
> It seems to me that the intention is to have the directory not exist after the operation.
So if it there then delete it, but if it is already not
> there, job done, no error.
> 
> Should I be using a different syntax or is this task specified wrongly.
> 
> Thanks,
> 
> Rob Worth
> 
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Try using the -quiet flag to the delete task.

Cheers,

Nick

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


Mime
View raw message