edit this page - page history - about editing

Ant

Ant allows for build scripts.
  1. Running JUnit Plugin Tests with Ant (JUnit, Eclipse)
  2. 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>

Categories: Technology
edit this page - what links to here? - page history - top
Last edited by jevon jevon 54 months ago