Annotation of forecastfox/build.xml, revision 1.6

1.1       richwkle    1: <?xml version="1.0"?>
1.6     ! richwkle    2: 
        !             3: <!-- project used to build xpi -->
1.3       richwkle    4: <project name="forecastfox" default="dist">
1.1       richwkle    5:        <property name="build"      location="build"/>
1.2       richwkle    6:   <property name="src"        location="src"/>
1.4       richwkle    7:   <property name="downloads"  location="downloads"/>
1.6     ! richwkle    8:   <property name="version"    value="testing"/>
        !             9: 
        !            10:        <target name="init">  
1.3       richwkle   11:                <!-- create the build directory structure used by compile -->
1.4       richwkle   12:     <mkdir dir="${downloads}"/>          
                     13:                <mkdir dir="${build}"/>
                     14:     <mkdir dir="${build}/chrome"/>
                     15:     <mkdir dir="${build}/components"/>
                     16:     <mkdir dir="${build}/defaults"/>
1.1       richwkle   17:        </target>
1.4       richwkle   18:        
                     19:   <target name="compile" depends="init">
                     20:     <!-- zip chrome directory -->  
1.5       richwkle   21:                <zip destfile="${build}/chrome/${ant.project.name}.jar" basedir="${src}/chrome" compress="false"/> 
                     22:     
1.4       richwkle   23:     <!-- execute component build -->
1.6     ! richwkle   24:     <ant antfile="component.xml"/>
1.4       richwkle   25:     
                     26:     <!-- copy components -->
1.3       richwkle   27:     <copy todir="${build}/components">
1.6     ! richwkle   28:       <fileset dir="${src}/components">
1.4       richwkle   29:         <include name="${comp}.*"/>
                     30:         <exclude name="${comp}.idl"/>        
1.3       richwkle   31:       </fileset>
1.4       richwkle   32:     </copy> 
                     33:      
                     34:     <!-- copy defaults -->
1.3       richwkle   35:     <copy todir="${build}/defaults">
                     36:       <fileset dir="${src}/defaults"/>
1.4       richwkle   37:     </copy>  
                     38:     
                     39:     <!-- copy install -->
1.3       richwkle   40:     <copy todir="${build}">
                     41:       <fileset dir="${src}">
                     42:         <include name="install.*"/>        
                     43:       </fileset>
                     44:     </copy>      
1.4       richwkle   45:        </target>
                     46:   
1.3       richwkle   47:   <target name="dist" depends="compile">
1.4       richwkle   48:     <!-- create XPI in donwloads directory -->
1.6     ! richwkle   49:                <zip destfile="downloads/${ant.project.name}-${version}.xpi" basedir="${build}" compress="true"/>
1.4       richwkle   50:     
                     51:     <!-- cleanup build directory -->    
1.3       richwkle   52:     <ant target="clean"/>
1.1       richwkle   53:        </target>
1.3       richwkle   54: 
                     55:   <target name="clean">
                     56:                <delete dir="${build}"/>    
1.4       richwkle   57:     <delete dir="${mozilla}/base"/>
1.3       richwkle   58:   </target>
1.1       richwkle   59: </project>

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