Edgewall Software

Here is a sample java build recipe.

<?xml version="1.0" encoding="UTF-8"?>
<build xmlns:python="http://bitten.edgewall.org/tools/python" 
                 xmlns:svn="http://bitten.edgewall.org/tools/svn" 
                 xmlns:java="http://bitten.edgewall.org/tools/java">
	<step id="svn checkout" >
		<svn:checkout url="https://trac.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>

Comments:

  • 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. If this step fails the build will continue.
  • Step 3 runs ant target test-all and collects the junit results. If this step fails the build will continue.

The build results page will show 4 separate steps for this recipe. The fast tests are run first so that the results will be quickly be visible on the build page.