<?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="build-meta-data" default="build" xmlns:au="antlib:org.apache.ant.antunit">
    <description>Build meta data</description>
    
    <target name="build" depends="compile-package, create-jar" />

    <path id="bmd.lib.path">
        <fileset dir="./lib" includes="*.jar"/>
    </path>

    <target name="compile-package">
        <echo>Building build meta data</echo>
        <mkdir dir="./build/classes" />
        <javac srcdir="./src" destdir="./build/classes" debug="true" source="1.5" target="1.5">
            <classpath refid="bmd.lib.path" />
            <include name="**/*.java" />
        </javac>
    </target>

    <target name="create-jar">
        <echo>Packaging module build meta data</echo>
        <mkdir dir="./bin" />
        <jar destfile="./bin/bmd.jar">
            <fileset dir="./build/classes" />
            <fileset dir="./src/" includes="**/*.xml"/>
            <manifest>
                <section name="common">
                    <attribute name="Implementation-Title" value="bmd" />
                    <attribute name="Implementation-Vendor" value="Nokia" />
                </section>
            </manifest>
        </jar>
    </target>

</project>
