ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ROBERT.WO...@jpmorgan.com
Subject Re: delete task shouldn't fail but it does - oh no it doesn't
Date Tue, 08 Jan 2002 13:08:43 GMT

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 <nick.cross@prismtechnologies.com>@prismtechnologies.com on
08/01/2002 12:19:49

Please respond to "Ant Users List" <ant-user@jakarta.apache.org>



Sent by:  rnc@prismtechnologies.com


To:   Ant Users List <ant-user@jakarta.apache.org>
cc:
Subject:  Re: delete task shouldn't fail but it does


Nick Cross wrote:
>
> 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
>

Hmmm, phrasing it properly it could be:

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


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>





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