- Running JUnit Plugin Tests with Ant (JUnit, Eclipse)
- Disabling DTD validation for Ant xmlvalidate task within Eclipse
Check if a file exists
If you are trying to only execute an Ant task if a certain file exists, you can use a subtask to check the existance of a file.
Another similar task is checking whether a file exists, and failing if it does not:
<target name="..."> <available property="file.exists" file="my/file" /> <fail unless="file.exists" message="The file my/file does not exist." /> </target>