File:  [mozdev] / readeasily / build.xml
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Fri Sep 16 22:03:27 2005 UTC (13 years, 5 months ago) by aradzivanovich
Branches: MAIN
CVS tags: RELEASE_1_0_3, RELEASE_1_0_1, HEAD
Reformatted

<?xml version="1.0"?>

<project name="readeasily" default="build">

    <property name="build" location="build"/>
    <property name="src" location="src"/>

    <target name="init" depends="clean">
        <mkdir dir="${build}"/>
        <mkdir dir="${build}/src"/>
        <mkdir dir="${build}/xpi"/>
        <mkdir dir="${build}/xpi/chrome"/>
    </target>

    <target name="build" depends="init">
        <copy todir="${build}/src">
            <fileset dir="${src}">
                <include name="**"/>
            </fileset>
        </copy>
        <ant target="xpi"/>
    </target>

    <!-- assemeble extension structure -->
    <target name="assemble">
        <!-- create main jar file -->
        <zip destfile="${build}/xpi/chrome/${ant.project.name}.jar" basedir="${build}/src/readeasily" compress="true"/>

        <!-- copy install meta files -->
        <copy todir="${build}/xpi">
            <fileset dir="${build}/src">
                <include name="install.*"/>
            </fileset>
        </copy>
    </target>

    <!-- create XPI archive -->
    <target name="xpi" depends="assemble">
        <zip destfile="${build}/${ant.project.name}.xpi" basedir="${build}/xpi" compress="true"/>
    </target>

    <!-- remove build output -->
    <target name="clean">
        <delete dir="${build}"/>
    </target>

</project>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>