Can you elaborate what you mean by a 'script-task'?
 
In general, I want to be able to handle the case where I don't
necessarily know all the files that might be there, but I just
want to check if anything at all is there.
 
I tried doing something like:
 
<available file="*" property="dirNotEmpty"/>
 
But the <available> task doesn't seem to be interested in expanding
wildcards.  Also, <available> doesn't except a nested <fileset>.
 
So, I don't see how to use a fileset with the <available> task.
 
Any other ideas?
 
Jason
----- Original Message -----
Sent: Sunday, December 24, 2000 5:47 AM
Subject: Re: How to check for empty directory

Maybe you can use a fileset (including all files in this dir) and a script-task to test if the included files are "0"?
 
Don't have used something like this, just an idea...
 
Nico
 
----- Original Message -----
Sent: Sunday, December 24, 2000 8:06 AM
Subject: How to check for empty directory

Hello,
 
I have been trying to figure out a way to detect
using the Ant basics, whether a directory is empty.
 
Any ideas?

Reply via email to