Annotation of forecastfox/build.xml, revision 1.3

1.1       richwkle    1: <?xml version="1.0"?>
1.3     ! richwkle    2: <project name="forecastfox" default="dist">
1.1       richwkle    3: 
                      4:        <property name="build"      location="build"/>
1.2       richwkle    5:   <property name="src"        location="src"/>
1.1       richwkle    6:          
                      7:        <target name="init">
1.3     ! richwkle    8:                <!-- create the time stamp -->
1.1       richwkle    9:                <tstamp/>
                     10:          
1.3     ! richwkle   11:                <!-- create the build directory structure used by compile -->
        !            12:                <mkdir dir="${build}"/>  
1.1       richwkle   13:        </target>
                     14: 
1.3     ! richwkle   15:   <target name="compile" depends="init">    
        !            16:     <!-- run all these in parallel for speed-->
        !            17:     <parallel>
        !            18:       <ant target="chrome"/>
        !            19:       <ant target="components"/>
        !            20:       <ant target="defaults"/>
        !            21:       <ant target="install"/>
        !            22:     </parallel>    
        !            23:   </target>
        !            24:   
1.1       richwkle   25:   <!-- zip chrome directory -->
1.3     ! richwkle   26:   <target name="chrome">
        !            27:     <mkdir dir="${build}/chrome"/>
        !            28:                <zip destfile="${build}/chrome/${ant.project.name}.jar" basedir="${src}/chrome"/>    
1.1       richwkle   29:   </target>
1.3     ! richwkle   30: 
1.1       richwkle   31:   <!-- copy components -->
1.3     ! richwkle   32:   <target name="components">
        !            33:     <copy todir="${build}/components">
        !            34:       <fileset dir="${src}/components">
        !            35:         <!-- We don't actually need the idl -->
        !            36:         <exclude name="*.idl"/>
        !            37:       </fileset>
        !            38:     </copy>    
1.1       richwkle   39:   </target>
1.3     ! richwkle   40: 
1.1       richwkle   41:   <!-- copy defaults -->
1.3     ! richwkle   42:   <target name="defaults">
        !            43:     <copy todir="${build}/defaults">
        !            44:       <fileset dir="${src}/defaults"/>
        !            45:     </copy>    
1.1       richwkle   46:   </target>
1.3     ! richwkle   47: 
1.1       richwkle   48:   <!-- copy install -->
1.3     ! richwkle   49:   <target name="install">
        !            50:     <copy todir="${build}">
        !            51:       <fileset dir="${src}">
        !            52:         <include name="install.*"/>        
        !            53:       </fileset>
        !            54:     </copy>      
        !            55:   </target>
        !            56: 
        !            57:   <!-- create XPI in donwloads directory -->  
        !            58:   <target name="dist" depends="compile">
        !            59:     <mkdir dir="downloads"/>
        !            60:                <zip destfile="downloads/${ant.project.name}-${DSTAMP}${TSTAMP}.xpi" basedir="${build}"/>
        !            61:     <ant target="clean"/>
1.1       richwkle   62:        </target>
1.3     ! richwkle   63: 
        !            64:   <!-- cleanup build directory -->
        !            65:   <target name="clean">
        !            66:                <delete dir="${build}"/>    
        !            67:   </target>
1.1       richwkle   68: </project>

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