Commons Configuration uses Maven as its build tool. Any recent version of Maven should work. To build the Configuration jar, change into the directory where the source distribution resides and run "mvn install". This will compile the source and tests, run the tests, and then package the jar. The jar will also be copied into the local maven repository for use by other builds. According to the minimum Java version of Commons Configuration, this build requires a JDK 1.6 or higher.
To build the web site run "mvn site". When it completes the web site will reside in the target/site directory and may be viewed by opening target/site/index.html.
TestWebdavConfigurationBuilder is a functional test that tests DefaultConfigurationBuilder with the configuration files stored in a WebDAV server. To run the test the steps that follow
In order to build the project with Apache Ant, some manual preparations have to be done. The problem is that Commons Configuration uses classes generated by JavaCC to process configuration files in specific formats. These classes are produced dynamically during the build process. While Maven is able to download all required artifacts automatically, the Ant build is not that smart. Therefore, it is required to download and install JavaCC manually. Then a file named build.properties has to be created in the root directory of Commons Configuration which defines the javacc_home property; here the path to the JavaCC installation has to be set. Commons Configuration already ships with a build.properties.sample file which can be copied and adapted correspondingly.
After these preparations have been done, the following Ant goals can be used: