

Firstly, you probably do not need to do this. If you have the source,
or binary version of antmerge, it will be prebuilt for you. Repeat
YOU PROBABLY DO NOT NEED TO DO THIS.

There are two ways to build ant depending on your sitation

1) build from a downloaded tar ball.

In this case the build is very easy. You should already have
antmerge's own build.xml file. So building is just a case of typing 

ant jar


If you are running under unix, having built antmerge it will run in
development mode, that is directly of the class files rather than the
jar. To stop this, follow the instructions it prints out!


2) build from CVS

Antmerge uses itself to generate its own build file. So you need a
bootstrap version of antmerge. To enable this there is a boot.xml
file, which builds a bootstrap version of antmerge, generates a
build.xml, and then deletes itself. 

So the full build process is


ant -f boot.xml

(you may need to set the ext-base property in antmerge.boot.properties
file, depending on where you have placed the external dependencies.)


This will build a bootstrap version of antmerge, generate a build.xml
file with it, then delete the bootstrap version, and build again using
the generated build.xml. 

