users
[Top] [All Lists]

Re: [cinjug-users] Ant task to check if directory contains any files

To: deshmol-lists@xxxxxxxxx
Subject: Re: [cinjug-users] Ant task to check if directory contains any files
From: Steve Sanden <sandens@xxxxxxx>
Date: Mon, 12 Dec 2005 22:20:06 -0500
Cc: users@xxxxxxxxxx
Delivered-to: mailing list users@cinjug.org
In-reply-to: <20051212152441.18640.qmail@web32001.mail.mud.yahoo.com>
Mailing-list: contact users-help@cinjug.org; run by ezmlm
References: <20051212152441.18640.qmail@web32001.mail.mud.yahoo.com>

Antelope is a is a graphical user interface for running Ant. But it also offers a bunch of cool ant tasks that may be of help.

FileUtils Task - [http://antelope.tigris.org/nonav/docs/manual/bk03ch12.html] provides the ability to 
find the # of files in a directory.



Steve



On Dec 12, 2005, at 10:24 AM, deshmol-lists@xxxxxxxxx wrote:

Hi,

Does anyone know of an ant task that I can use to
check if a directory contains one or more files?

I'm trying:

<condition property="filepresent">
  <available file="${upload.dir}/?*"/>
</condition>

But that does not work (filepresent is not set
although ${upload.dir} contains more than one file).
Apparently, "available" does not take a pattern
argument for the filename.


Regards,
~ amol

---------
You may unsubscribe from this mailing list
by sending a blank email addressed to:

--
Find additional help by sending a blank email
addressed to:


<Prev in Thread] Current Thread [Next in Thread>