ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: suppress stopping build on error?
Date Tue, 24 Oct 2000 21:36:21 GMT

Why not do <delete dir="${dist.dir}" /> ?  Thats the syntax intended to
replace the current <deltree> functionality.  The error you are getting
there is coming from the <fileset>, not <delete>.  Currently <fileset>
requires the dir to exist.

Glenn McAllister
Software Developer. IBM Toronto Lab, (416) 448-3805
"An approximate answer to the right question is better than the
right answer to the wrong question." - John W. Tukey

Please respond to

Subject:  Re: suppress stopping build on error?

> What version of Ant are you using?  The latest (1.2) quietly does nothing
> if the directory you specify doesn't exist.

ant.jar 1.2 from today, on Linux.
Here it stops with error for

      <fileset dir="${dist.dir}" includes="**"/>

> Hi,
> i have a 'clean' target where i <delete> directories.
> If one of those does not exist, build stops:
>  /home/ruff/xy/build.xml:319: /home/ruff/xy/test not found.
> How can i keep build running,
> there are other tasks i want to do
> even if the directory did not exist.

Marcel Ruff

View raw message