Here is a sample java build recipe.
<?xml version="1.0" encoding="UTF-8"?>
<build xmlns:python="http://bitten.cmlenz.net/tools/python"
xmlns:svn="http://bitten.cmlenz.net/tools/svn"
xmlns:java="http://bitten.cmlenz.net/tools/java">
<step id="svn checkout" >
<svn:checkout url="https://www.xyz.org/myproject/"
path="${path}" revision="${revision}"/>
</step>
<step id="compile">
<java:ant file="build.xml" target="compile-all" />
</step>
<step id="create exe" onerror="continue">
<java:ant file="build.xml" target="create-exe"/>
</step>
<step id="run junit" onerror="continue">
<java:ant file="build.xml" target="test-fast"/>
<java:junit file="test-results/TEST-*.xml" srcdir="src" />
</step>
<step id="run junit" onerror="continue">
<java:ant file="build.xml" target="test-all"/>
<java:junit file="test-results/TEST-*.xml" srcdir="src" />
</step>
</build>
- Step 1 checks out the project from the given path.
- Step 2 compiles the project by calling the ant target "compile-all". If this step fails the build will stop.
- Step 3 runs ant target test-fast and collects the junit results.
- Step 3 runs ant target test-all and collects the junit results.