I have a property with a list of jars delimited with semicolons. The contents of the property is read from a file and not part of the build file, but it looks like this:
<property name="jars" value="a.jar;b.jar;c.jar"/>
And I would like to check if all the files are available. I know how to do it manually using:
<target name="opt">
<echo message="jars: ${jars}"/>
<condition property="found">
<and>
<available file="a.jar"/>
<available file="b.jar"/>
<available file="c.jar"/>
</and>
</condition>
<echo message="found: ${found}"/>
</target>
But how can this be done if the list of files is in a property and can not be written into the build file?
I need something like "apply and map available files". How can this be done?