buildframework/helium/build-jar.ant.xml
author mikek
Tue, 02 Nov 2010 14:32:27 +0000
changeset 33 667e3f7728f7
parent 2 39c28ec933dd
permissions -rwxr-xr-x
1) Make prep_env.pl apply a patch to epoc32/sbs_config/s60_sbs_config.xml to replace the ARM kernel-side runtime ksrt4_0.lib with the GCCE one ksrt_gcce.lib 2) Fix romnibus.pl so it won't do case-tampering on the epocroot prefix of source paths in oby/iby files.

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

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-build-jar" default="help" xmlns:au="org.apache.ant.antunit" xmlns:hlm="http://www.nokia.com/helium">
    <description>
    Called by hlm-jar.bat to build helium java code
    </description>

    <!-- @property env
    Load all environment variables. -->
    <property environment="env" />

    <!-- @type string
    @scope private
    -->
    <property name="build.temp.dir" location="${env.TEMP}/helium/java" />
    <!-- @type string
    @scope private
    -->
    <property name="src.dir" location="${helium.dir}/tools/common/java/src" />
    <!-- @type string
    @scope private
    -->
    <property name="ext.java.lib.dir" location="${helium.dir}/external/antlibs" />
    <!-- @type string
    @scope private
    -->
    <property name="helium.java.lib.dir" location="${helium.dir}/tools/common/java/lib" />


    <!-- Builds the Java source code for our custom Ant stuff. -->
    <target name="build-java-src" description="Builds the internal Ant custom tasks">
        <delete dir="${build.temp.dir}" />
        <mkdir dir="${build.temp.dir}" />
        <copy todir="${build.temp.dir}/class">
            <fileset dir="${src.dir}">
                <include name="**/*.properties" />
                <include name="**/*.xml" />
            </fileset>
        </copy>
        <javac srcdir="${src.dir}" destdir="${build.temp.dir}/class" source="1.6" target="1.6" debug="true">
            <classpath>
                <fileset dir="${ext.java.lib.dir}" includes="**/*.jar" />
                <fileset dir="${helium.dir}/external/helium-antlib" includes="**/*.jar" />
            </classpath>
            <exclude name="nokia/cruisecontrol/**" />
        </javac>
    </target>


    <!-- Builds the .jar file with our custom Ant tasks and loggers in. -->
    <target name="jar" depends="build-java-src" description="Builds jar for internal Ant custom tasks">
        <property file="${helium.dir}/config/version.txt" />
        <mkdir dir="${build.temp.dir}/lib" />
        <delete file="${build.temp.dir}/lib/nokia_ant.jar" />
        <copy file="${src.dir}/com/nokia/ant/antlib.xml" todir="${build.temp.dir}/class/com/nokia/ant" />

        <jar basedir="${build.temp.dir}/class" destfile="${build.temp.dir}/lib/nokia_ant.jar" update="true">
            <manifest>
                <attribute name="Built-By" value="${user.name}" />
                <section name="common">
                    <attribute name="Implementation-Title" value="Helium" />
                    <attribute name="Implementation-Version" value="${helium.version}" />
                    <attribute name="Implementation-Vendor" value="Nokia" />
                </section>
            </manifest>
        </jar>

        <move file="${build.temp.dir}/lib/nokia_ant.jar" tofile="${helium.java.lib.dir}/nokia_ant.jar" />
    </target>

</project>