Suppress echo of targetname

2007-11-15 Thread nissea
Hi I would like to check all files in a directory and if the filename starts with "hash" the file should be removed. My code looks like this: The target "delete" calls the target "deleteHash" for every file that are in the directory "C:\TEM

Re: Check if a directory is empty

2007-10-09 Thread nissea
OK, Thank you so much! David Weintraub wrote: > > Hmmm... > > You could create a PATH ID, then convert that over to a property, then > check that the property is not empty. The following build.xml has been > tested and checks for the presents of files in that directory. > However, it will re

Check if a directory is empty

2007-10-09 Thread nissea
Hi I would like to check if a directory is empty and not include any files, and if it is empty I would like to do something and if it's not I would like to do another thing, quite like an If-statement? Does anyone know how to do this? regards Nils -- View this message in context: http://www.na