Annotation of forecastfox/build.xml, revision 1.8

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

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