Tried it with this as sugested and it does the trick:

        <delete includeEmptyDirs="true" failonerror="false">
            <fileset dir="jsp" />
        </delete>

Thanks all.

Rob




Nick Cross <[EMAIL PROTECTED]>@prismtechnologies.com on
08/01/2002 12:19:49

Please respond to "Ant Users List" <[EMAIL PROTECTED]>



Sent by:  [EMAIL PROTECTED]


To:   Ant Users List <[EMAIL PROTECTED]>
cc:
Subject:  Re: delete task shouldn't fail but it does


Nick Cross wrote:
>
> [EMAIL PROTECTED] 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:[EMAIL PROTECTED]>
> > For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>
>
> Try using the -quiet flag to the delete task.
>
> Cheers,
>
> Nick
>

Hmmm, phrasing it properly it could be:

  <delete includeEmptyDirs="true" quiet="true">
      <fileset dir="jsp" />
  </delete>


Cheers,

Nick

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>





--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to