ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Gates <al...@radik.com>
Subject Re: Copy fails: build succeeds?
Date Thu, 05 Apr 2001 18:56:57 GMT
Koster,

I ran into the same problem.  My solution was to use the CopyFile task.   This
is officially deprecated, but it does stop the build if your copy fails.  Same
with CopyDir.

Alan.

"Koster, K.J." wrote:

> Dear All,
>
> I'm sure this must be a FAQ, but I could not find an answer.
>
> When I use a <copy> task and the source file is not present, the copy task
> generates an error message and continues. Ant finally proudly announces that
> the build has succeeded, when I'm obviously stuck with a failed build.
>
> How can I tell Ant to fail the build process instead?
>
>     Kees Jan
>
> ================================================
>  You are only young once,
>        but you can stay immature all your life.


Mime
View raw message