buildframework/helium/external/helium-antlib/build.xml
changeset 217 0f5e3a7fb6af
parent 179 d8ac696cc51f
equal deleted inserted replaced
181:59bb7c4d6172 217:0f5e3a7fb6af
    18 
    18 
    19 Description:
    19 Description:
    20 
    20 
    21 ============================================================================
    21 ============================================================================
    22 -->
    22 -->
    23 <project name="helium-antlib" default="build" xmlns:au="antlib:org.apache.ant.antunit">
    23 <project name="sf" default="build">
    24     <description>Helium Antlib build file.</description>
       
    25     
       
    26     <property environment="env" />
    24     <property environment="env" />
    27 
    25     <property name="helium.source.root.dir" location="${ant.file.sf}/.." />
    28     <dirname property="helium.antlib.root.dir" file="${ant.file.helium-antlib}" />    
    26     <property name="sf.source.root.dir" location="${ant.file.sf}/.." />
    29 
    27     <import file="${env.BUILDER_HOME}/build.xml"/>
    30     <import file="macros.ant.xml" />    
       
    31     
       
    32     
       
    33     <path id="subant.build.files">
       
    34         <fileset dir="." includes="core/build.xml" />
       
    35         <fileset dir="." includes="signaling/build.xml" />
       
    36         <fileset dir="." includes="*/build.xml" />
       
    37     </path>
       
    38 
       
    39     
       
    40     <target name="compile" description="Compile class files">
       
    41         <subantPreset target="compile"/>
       
    42     </target>
       
    43     
       
    44     
       
    45     <target name="jar" description="Create jar files">
       
    46         <subantPreset target="jar"/>
       
    47     </target>
       
    48     
       
    49     
       
    50     <target name="build" description="Runs compile and jar">
       
    51         <subantPreset target="build"/>
       
    52     </target>
       
    53     
       
    54     
       
    55     <target name="junit" description="Runs jUnit tests">
       
    56         <subantPreset target="junit"/>
       
    57         <antcall target="merge-coverage" />
       
    58     </target>
       
    59     
       
    60     
       
    61     <target name="unittest" description="Runs AntUnit tests">
       
    62         <subantPreset target="unittest"/>
       
    63         <antcall target="merge-coverage" />
       
    64     </target>
       
    65     
       
    66         
       
    67     <target name="test" description="Runs all tests">
       
    68         <subantPreset target="test"/>
       
    69         <antcall target="merge-coverage" />
       
    70     </target>
       
    71     
       
    72     <target name="clean" description="Cleans build outputs">
       
    73         <subantPreset target="clean"/>
       
    74     </target>
       
    75 
       
    76     <target name="merge-coverage">
       
    77         <emma enabled="true">
       
    78             <report>
       
    79                 <sourcepath>
       
    80                     <dirset dir="${helium.antlib.root.dir}" >
       
    81                         <include name="**/src" /> 
       
    82                     </dirset>
       
    83                 </sourcepath>
       
    84                 <infileset dir="${build.temp.dir}" includes="**/*.emma" />
       
    85                 <txt outfile="${build.temp.dir}/coverage.txt" />
       
    86                 <html outfile="${build.temp.dir}/coverage.html" />
       
    87                 <xml outfile="${build.temp.dir}/coverage.xml" />
       
    88             </report>
       
    89         </emma>
       
    90     </target>
       
    91     
       
    92 </project>
    28 </project>
    93 
    29 
    94 
    30