users
[Top] [All Lists]

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

To: Steve Sanden <sandens@xxxxxxx>
Subject: Re: [cinjug-users] Ant task to check if directory contains any files
From: <deshmol-lists@xxxxxxxxx>
Date: Thu, 15 Dec 2005 06:54:55 -0800 (PST)
Cc: users@xxxxxxxxxx
Delivered-to: mailing list users@cinjug.org
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=GQKpi9jjoMxy5dj2+EQCa5REsC+pSFqc3ykutzFcQexlhhBj27xnkoFjpJvV0zt1zhY6bwuipe+wzXgvrqWR0pdZ3Gq70cAgjb82czF4pRyeap4WD/EaWs7ub/xqChorBK9qyWnmXmjGmaApM2Den48AZo7qQoxclu2xbguax7A= ;
In-reply-to: <8D4728B5-C390-4755-B631-358D59DBEFCF@mac.com>
Mailing-list: contact users-help@cinjug.org; run by ezmlm
Steven,

Thanks, Antelope tasks did the work for me.
Actually I ended up using tasks from both Antelope and ant-contrib (which I found out about from the antelope website)

Regards,
~ amol

----- Original Message ----
From: Steve Sanden <sandens@xxxxxxx>
To: deshmol-lists@xxxxxxxxx
Cc: users@xxxxxxxxxx
Sent: Monday, December 12, 2005 22:20:06
Subject: Re: [cinjug-users] Ant task to check if directory contains any files


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>