ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: clean way to stop building?
Date Tue, 19 Sep 2000 13:42:04 GMT
>>>>> "RC" == Raf Colson <> writes:

 RC> Hello, I was wandering if there exists a clean way to stop the
 RC> buildproces,

In Ant 1.2 there's going to be a fail task for this. Until then the
only thing I can think of right now would be something like

<target name="check">
  <available property="ok" ...

<target name="fail" depends="check" unless="ok">
  <echo message="Resource not found" />

<target name="work" depends="check" if="ok">

<target name="" depends="fail,work" />

which won't stop the build process but do nothing if things are not
set up correctly.


View raw message