Edgewall Software

Changes between Initial Version and Version 1 of Bitten Sample Java Recipe


Ignore:
Timestamp:
Jun 16, 2008, 5:35:57 AM (16 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Bitten Sample Java Recipe

    v1 v1  
     1==== Here is a sample java build recipe.  ====
     2
     3
     4{{{
     5<?xml version="1.0" encoding="UTF-8"?>
     6<build xmlns:python="http://bitten.cmlenz.net/tools/python"
     7                 xmlns:svn="http://bitten.cmlenz.net/tools/svn"
     8                 xmlns:java="http://bitten.cmlenz.net/tools/java">
     9        <step id="svn checkout" >
     10                <svn:checkout url="https://www.xyz.org/myproject/"
     11                     path="${path}" revision="${revision}"/>
     12        </step>
     13        <step id="compile">
     14                <java:ant file="build.xml" target="compile-all" />
     15        </step>
     16        <step id="create exe" onerror="continue">
     17                <java:ant file="build.xml" target="create-exe"/>
     18        </step>
     19        <step id="run junit"  onerror="continue">
     20                <java:ant file="build.xml" target="test-fast"/>
     21                <java:junit file="test-results/TEST-*.xml" srcdir="src" />
     22        </step>
     23        <step id="run junit"  onerror="continue">
     24                <java:ant file="build.xml" target="test-all"/>
     25                <java:junit file="test-results/TEST-*.xml" srcdir="src" />
     26        </step>
     27</build>
     28
     29}}}
     30
     31==== Comments: ====
     32
     33 * Step 1 checks out the project from the given path.
     34
     35 * Step 2 compiles the project by calling the ant target "compile-all".  If this step fails the build will stop.
     36
     37 * Step 3 runs ant target test-fast and collects the junit results.
     38
     39 * Step 3 runs ant target test-all and collects the junit results.
     40