buildframework/helium/external/helium-antlib/build.xml
author Pat Downey <patd@symbian.org>
Fri, 05 Feb 2010 11:59:41 +0000
changeset 181 59bb7c4d6172
parent 179 d8ac696cc51f
child 217 0f5e3a7fb6af
permissions -rw-r--r--
Minor update

<?xml version="1.0" encoding="UTF-8"?>
<!-- 
============================================================================ 
Name        : build.xml 
Part of     : Helium AntLib

Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
All rights reserved.
This component and the accompanying materials are made available
under the terms of the License "Eclipse Public License v1.0"
which accompanies this distribution, and is available
at the URL "http://www.eclipse.org/legal/epl-v10.html".

Initial Contributors:
Nokia Corporation - initial contribution.

Contributors:

Description:

============================================================================
-->
<project name="helium-antlib" default="build" xmlns:au="antlib:org.apache.ant.antunit">
    <description>Helium Antlib build file.</description>
    
    <property environment="env" />

    <dirname property="helium.antlib.root.dir" file="${ant.file.helium-antlib}" />    

    <import file="macros.ant.xml" />    
    
    
    <path id="subant.build.files">
        <fileset dir="." includes="core/build.xml" />
        <fileset dir="." includes="signaling/build.xml" />
        <fileset dir="." includes="*/build.xml" />
    </path>

    
    <target name="compile" description="Compile class files">
        <subantPreset target="compile"/>
    </target>
    
    
    <target name="jar" description="Create jar files">
        <subantPreset target="jar"/>
    </target>
    
    
    <target name="build" description="Runs compile and jar">
        <subantPreset target="build"/>
    </target>
    
    
    <target name="junit" description="Runs jUnit tests">
        <subantPreset target="junit"/>
        <antcall target="merge-coverage" />
    </target>
    
    
    <target name="unittest" description="Runs AntUnit tests">
        <subantPreset target="unittest"/>
        <antcall target="merge-coverage" />
    </target>
    
        
    <target name="test" description="Runs all tests">
        <subantPreset target="test"/>
        <antcall target="merge-coverage" />
    </target>
    
    <target name="clean" description="Cleans build outputs">
        <subantPreset target="clean"/>
    </target>

    <target name="merge-coverage">
        <emma enabled="true">
            <report>
                <sourcepath>
                    <dirset dir="${helium.antlib.root.dir}" >
                        <include name="**/src" /> 
                    </dirset>
                </sourcepath>
                <infileset dir="${build.temp.dir}" includes="**/*.emma" />
                <txt outfile="${build.temp.dir}/coverage.txt" />
                <html outfile="${build.temp.dir}/coverage.html" />
                <xml outfile="${build.temp.dir}/coverage.xml" />
            </report>
        </emma>
    </target>
    
</project>