About compiling and building with Ant

You can use Apache Ant to compile and build your Java manipulator or content adapter, or you can use Java commands.

In the example that follows, you compile and build the reference application (MBoxAdapter.java) in the CADK directory. However, you should develop your own Java manipulator or content adapter outside of the Endeca directory structure. This ensures that your work is not inadvertently removed when you make changes to your Endeca software.

The simplest way to compile and build the reference implementation Java manipulator or content adapter is to run ant from the CADK directory. This builds reference-adapter.jar and places it in an install directory that Ant creates.

The name reference-adapter.jar can be changed by building with the jarname flag, for example:

ant -Djarname=MyNamedAdapter.jar

Similarly, the install location can be changed by building with the installpath flag, for example:

ant -Dinstallpath=my-install-path

Note: Ant relies on both build.xml settings and a particular directory structure. When you are ready to develop your own Java manipulator or content adapter, you can set up a similar directory structure for your own work and copy and modify build.xml appropriately.