Simple (?) question about available

2005-05-20 Thread Rich Wagner
Hi, I'm having trouble specifying a particular available task. Here's what I want, though Ant isn't happy with it: target name=check_for_zip_file available property=ZIP_FILE_EXISTS filepath include name=${DIR}/*.zip/ exclude

Re: Simple (?) question about available

2005-05-20 Thread Alexey N. Solofnenko
I think you should add fileset inside filepath: http://ant.apache.org/manual/using.html#path - Alexey. Rich Wagner wrote: Hi, I'm having trouble specifying a particular available task. Here's what I want, though Ant isn't happy with it: target name=check_for_zip_file available

Re: Simple (?) question about available

2005-05-20 Thread Matt Benson
In Ant 1.7 you will have other methods at your disposal. For now: pathconvert property=ZIP_FILE_EXISTS setonempty=false path fileset dir=${DIR} includes=*.zip excludes=not_this_one.zip / /path /pathconvert does what you want. HTH, Matt --- Rich Wagner [EMAIL