An example build-file
After you've installed ant4eclipse, you're ready to build your Eclipse projects using the supplied tasks. The following ant file is a simple example that calculates the build order for a set of projects and compiles them using the classpath and other settings taken from Eclipse configuration files:
You might have noticed that there is only one reference in this build file to concrete
projects, that is the listing of the project names in the getBuildOrder task. All
other things are quite generic allowing you to reuse this build files for more than one
project. All settings that are relevant to a project or a set of projects are directly read
from the appropriate configuration files. If you add a project: no worries, ant4eclipse will
calculate the new dependencies for you (getBuildOrder). If you modify the directory layout in one or more
of your projects: no worries, ant4eclipse reads them for you (getSourcepath,
getOutputpath). If you change the classpath in a project by adding a third party jar,
by adding a new project reference or whatever, no worries: ant4eclipse will always return
the up-to-date classpath (getEclipseClasspath).