| To: | users@xxxxxxxxxx |
|---|---|
| Subject: | Ant task to check if directory contains any files |
| From: | <deshmol-lists@xxxxxxxxx> |
| Date: | Mon, 12 Dec 2005 07:24:41 -0800 (PST) |
| Delivered-to: | mailing list users@cinjug.org |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=JXMVTD8mrMbhgf3xSutNK64LA/vZMub4cBmKlxaZiZl5CBsb6jbaRJppow8PmQVsp9aeFxAQZ0C0YT+txz8GEosFgG5nJlYJqeBR/2R07sk9kg3/uLz8yt5k9y4Rt9oj6SwwCFUD2WOmJ8TIG+lltLg4u2CXgevwn9mNKZjTILQ= ; |
| Mailing-list: | contact users-help@cinjug.org; run by ezmlm |
| Reply-to: | deshmol-lists@xxxxxxxxx |
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
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re-finance before rates skyrocket, Kara French |
|---|---|
| Next by Date: | Re: [cinjug-users] Ant task to check if directory contains any files, Steve Sanden |
| Previous by Thread: | Re-finance before rates skyrocket, Kara French |
| Next by Thread: | Re: [cinjug-users] Ant task to check if directory contains any files, Steve Sanden |
| Indexes: | [Date] [Thread] [Top] [All Lists] |