ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: ResourceExists condition
Date Tue, 25 Jan 2011 16:52:08 GMT
On 2011-01-25, Matt Benson wrote:

> On Jan 25, 2011, at 4:25 AM, Stefan Bodewig wrote:

>> On 2011-01-25, <bodewig@apache.org> wrote:

>>> Added:
>>>    ant/antlibs/antunit/trunk/src/main/org/apache/ant/antunit/ResourceExists.java
  (with props)

>> This is a plain ant condition with no dependency on AntUnit that might
>> be useful in core Ant as well.


> Shorthand for

> <resourcecount count="1">
>   <restrict>
>     <exists>
>       <resource refid="myresource" />
>     </exists>
>   </restrict>
> </resourcecount>

> ?  ;)

Only that the resource can be specified as attribute (which implies
property helper syntax) and is likely a bit more efficient.  Other than
that, yes 8-)

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message