Overview
Decorum is a simple dependency extension to ant. It does the following:
- Constructs classpaths using a simple list of dependencies.
- Matches jars to the required version (eg "any", "1.0", "1.2.3+")
- Builds the dependencies if no jar is present.
Two minute example
<project ...>
<!-- Import Decorum -->
<taskdef name="dependencies"
classname="org.trapdoor.decorum.Decorum">
<classpath location="${lib.dir}/decorum.jar" />
</taskdef>
<dependencies id="deps" libdir="${lib.dir}">
<dependency name="log4j" />
</dependencies>
...
<target name="compile">
<javac srcdir="${src.dir}" destdir="${build.dir}"
classpathref="path.deps" />
</target>
This will find the highest version of log4j available and add it to a classpath reference called path.deps.
Documentation
- Getting started
- Javadoc
