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
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
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