Diff for /forecastfox/Attic/build.xml between versions 1.2 and 1.3

version 1.2, 2004/11/16 15:16:01 version 1.3, 2004/11/16 16:55:09
Line 1 Line 1
 <?xml version="1.0"?>  <?xml version="1.0"?>
<project name="forecastfox" default="xpi"><project name="forecastfox" default="dist">
   
         <property name="build"      location="build"/>          <property name="build"      location="build"/>
   <property name="src"        location="src"/>    <property name="src"        location="src"/>
         <property name="chrome"     value="chrome"/>  
   <property name="components" value="components"/>  
   <property name="defaults"   value="defaults"/>  
   <property name="downloads"  location="downloads"/>  
         <property name="version"    value="0.5.8"/>  
                       
         <target name="init">          <target name="init">
                <!-- Create the time stamp -->                <!-- create the time stamp -->
                 <tstamp/>                  <tstamp/>
                       
                <!-- Create the build directory structure used by compile -->                <!-- create the build directory structure used by compile -->
                <mkdir dir="${build}"/>                <mkdir dir="${build}"/>  
         </target>          </target>
   
     <target name="compile" depends="init">    
       <!-- run all these in parallel for speed-->
       <parallel>
         <ant target="chrome"/>
         <ant target="components"/>
         <ant target="defaults"/>
         <ant target="install"/>
       </parallel>    
     </target>
     
   <!-- zip chrome directory -->    <!-- zip chrome directory -->
  <target name="chrome" depends="init">  <target name="chrome">
    <mkdir dir="${build}/${chrome}"/>    <mkdir dir="${build}/chrome"/>
                <zip destfile="${build}/${chrome}/${ant.project.name}.jar" basedir="${src}/${chrome}"/>                <zip destfile="${build}/chrome/${ant.project.name}.jar" basedir="${src}/chrome"/>    
   </target>    </target>
    
   <!-- copy components -->    <!-- copy components -->
  <target name="components" depends="chrome">  <target name="components">
    <mkdir dir="${build}/${components}"/>    <copy todir="${build}/components">
                <copy todir="${build}/${components}">      <fileset dir="${src}/components">
                  <fileset dir="${src}/${components}">        <!-- We don't actually need the idl -->
                    <exclude name="*.idl"/>        <exclude name="*.idl"/>
                  </fileset>      </fileset>
    </copy>    </copy>    
   </target>    </target>
  
   <!-- copy defaults -->    <!-- copy defaults -->
  <target name="defaults" depends="components">  <target name="defaults">
    <mkdir dir="${build}/${defaults}"/>    <copy todir="${build}/defaults">
                <copy todir="${build}/${defaults}">      <fileset dir="${src}/defaults"/>
                  <fileset dir="${src}/${defaults}"/>    </copy>    
    </copy> 
   </target>    </target>
  
   <!-- copy install -->    <!-- copy install -->
  <target name="install" depends="defaults">  <target name="install">
                <copy todir="${build}">    <copy todir="${build}">
                  <fileset dir="${src}">      <fileset dir="${src}">
                    <include name="install.*"/>        <include name="install.*"/>        
                  </fileset>      </fileset>
    </copy>    </copy>      
  </target>  </target>
    
  <target name="xpi" depends="install">  <!-- create XPI in donwloads directory -->  
                <zip destfile="${downloads}/${ant.project.name}-${version}.xpi" basedir="${build}"/>  <target name="dist" depends="compile">
                <delete dir="${build}"/>    <mkdir dir="downloads"/>
                 <zip destfile="downloads/${ant.project.name}-${DSTAMP}${TSTAMP}.xpi" basedir="${build}"/>
     <ant target="clean"/>
         </target>          </target>
   
     <!-- cleanup build directory -->
     <target name="clean">
                   <delete dir="${build}"/>    
     </target>
 </project>  </project>
   

Removed from v.1.2  
changed lines
  Added in v.1.3


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