ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: [NEW TASK] require
Date Tue, 19 Sep 2000 07:45:35 GMT
>>>>> "JD" == Jason Dillon <> writes:

 JD> Hello, here is a new task which is a lot like available, except
 JD> that it will throw an exception if the given resource is not
 JD> available.

I don't actually like the duplication here.

<target name="check">
  <available property="all.there" ... >

<target name="" depends="check" unless="all.there">
  <fail message="Resource XYZ is missing" />

<target name="main" depends="">

would do the same.

we could add if/unless attribute to fail to merge these targets into a
single one though.


View raw message