In ant, how can i check if a set of files (comma-separated list of paths) exist or not?
For example I need to check if all paths listed in myprop
exist and if so i want to set a property pathExist
:
<property name="myprop" value="path1,path2,path3"/>
So in the example all of path1
path2
path3
must exist to set pathExist
to true
, otherwise false
.
I discovered that for a single resource I can use the resourceexist
task, but i can't figure out how to use that with a comma-separated list of paths.
How can I check the existence for a set of paths? Thanks!