You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Dirk Starke <di...@starke-net.de> on 2006/09/05 07:30:49 UTC
available does not support *
Hello guys,
I would like to test whether or not a specified directory contains some
files. 'Cause I do not really (want to) know what their names are, I
tried
<*available* file="*" ...
but that did not work. Obviously the *available*-task does not like
patterns.
Has anybody an idea how I could get this working?
Thanks a lot in advance.
Regards,
Dirk
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: available does not support *
Posted by Stefan Bodewig <bo...@apache.org>.
On Tue, 05 Sep 2006, Dirk Starke <di...@starke-net.de> wrote:
> I would like to test whether or not a specified directory contains
> some files.
Apart from Jan's suggestion, which should work for Ant 1.6, Ant
1.7beta comes with a new <resourcecount> condition
<condition property="dir-is-not-empty?">
<resourcecount when="greater" length="0">
<fileset dir="..."/>
</resourcecount>
</condition>
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: available does not support *
Posted by Chris Chiasson <ch...@chiasson.name>.
try fileset with patternset? (i'm a newbite)
http://ant.apache.org/manual/CoreTypes/fileset.html
On 9/5/06, Dirk Starke <di...@starke-net.de> wrote:
> Hello guys,
>
> I would like to test whether or not a specified directory contains some
> files. 'Cause I do not really (want to) know what their names are, I
> tried
>
> <*available* file="*" ...
>
> but that did not work. Obviously the *available*-task does not like
> patterns.
> Has anybody an idea how I could get this working?
> Thanks a lot in advance.
>
> Regards,
> Dirk
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
--
http://chris.chiasson.name/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org