Our second practical example of using Ant buildfiles in Eclipse is a 'project builder'. This is an Ant buildfile that has been designated to run whenever a project is built. The uses for such a buildfile are many:
.jar
file containing class files from your projectFor this example, we will create an Ant buildfile that creates a .jar
archive of the class files in a
project. Note that this is similar to the example in the last chapter, in which we used an Ant buildfile to generate
.jar
files for an Eclipse plug-in. This example differs in that it works for any Eclipse project,
whether or not it is also an Eclipse plug-in.