Diff for /forecastfox/Attic/build.xml between versions 1.10 and 1.17

version 1.10, 2005/01/10 16:01:42 version 1.17, 2005/06/06 16:06:39
Line 12 Line 12
    - for the specific language governing rights and limitations under the     - for the specific language governing rights and limitations under the
    - License.     - License.
    -     -
   - The Original Code is ForecastFox.   - The Original Code is Forecastfox.
    -     -
    - The Initial Developer of the Original Code is     - The Initial Developer of the Original Code is
    - Jon Stritar <jstritar@MIT.EDU>.     - Jon Stritar <jstritar@MIT.EDU>.
Line 39 Line 39
   
 <!-- project used to build xpi -->  <!-- project used to build xpi -->
 <project name="forecastfox" default="dist">  <project name="forecastfox" default="dist">
  <property name="build"      location="build"/>  <property name="app.version"     value="0.8"/>
  <property name="src"        location="src"/>  <property name="app.guid"        value="{0538E3E3-7E9B-4d49-8831-A227C80A7AD3}"/>
  <property name="downloads"  location="downloads"/>  <property name="build.dir"       location="build"/>
  <property name="comp"       value="nsForecastfox"/>  <property name="staging.dir"     location="staging"/>
  <property name="version"    value="testing"/>  <property name="downloads.dir"   location="downloads"/>
  <property name="src.dir"         location="src"/>
  <target name="init">    <property name="xpidl.dir"       location="xpidl"/>
    <!-- create the build directory structure used by compile -->  <property name="moz.dir"         location="c:\program files\mozilla\firefox\"/>
    <mkdir dir="${downloads}"/>        
    <mkdir dir="${build}"/>  <!-- create build directories -->
    <mkdir dir="${build}/chrome"/>  <target name="init" description="Create build environment">
    <mkdir dir="${build}/components"/>    <mkdir dir="${downloads.dir}"/>
    <mkdir dir="${build}/defaults"/>    <mkdir dir="${staging.dir}"/>    
  </target>    <mkdir dir="${build.dir}"/>
            <mkdir dir="${build.dir}/chrome"/>    
  <target name="compile" depends="init">  </target>
    <!-- zip chrome directory -->    
    <zip destfile="${build}/chrome/${ant.project.name}.jar" basedir="${src}/chrome" compress="false"/  <!-- clean up build directories -->
      <target name="clean">
    <!-- execute component build -->    <delete dir="${build.dir}"/>    
    <ant antfile="component.xml"/>    <delete dir="${moz.dir}/base"/>
        <delete dir="${staging.dir}"/>
    <!-- copy components -->  </target>
    <copy todir="${build}/components">  
      <fileset dir="${src}/components">  <!-- staging files -->
        <include name="${comp}.*"/>  <target name="staging" description="Copy files to staging and preprocess">
        <exclude name="${comp}.idl"/>            
     <!-- replace version and locale strings -->
     <copy todir="${staging.dir}" overwrite="true">
       <fileset dir="${src.dir}">
         <exclude name="**/images/**"/>
       </fileset>        </fileset>
    </copy>       <filterset begintoken="#" endtoken="#">
             <filter token="VERSION" value="${app.version}"/>
    <!-- copy defaults -->        <filter token="GUID" value="${app.guid}"/>
    <copy todir="${build}/defaults">      </filterset>      
      <fileset dir="${src}/defaults"/>    </copy>
    </copy>      
        <!-- copy binary files to staging -->
    <!-- copy install -->    <copy todir="${staging.dir}" overwrite="true">
    <copy todir="${build}">      <fileset dir="${src.dir}">
      <fileset dir="${src}">        <include name="**/images/**"/>
        <include name="install.*"/>      </fileset>  
     </copy>    
   </target>
 
   <!-- build interfaces -->
   <target name="xpt" description="Create interface definition files">
     
     <!-- copy interfaces to mozilla dir -->
     <unzip src="${xpidl.dir}/base.zip" dest="${moz.dir}"/>
     <copy todir="${moz.dir}/base">
       <fileset dir="${staging.dir}/components">
         <include name="*.idl"/>    
       </fileset>        </fileset>
    </copy>          </copy>
     
     <!-- create interfaces -->
     <echo message="Building nsForecastfox.xpt"/>
     <exec dir="${moz.dir}/base" executable="${moz.dir}/base/xpidl.exe" failonerror="true">
       <arg line="-m typelib -w -v -I -o nsForecastfox.idl"/>
     </exec>
     <echo message="Building ffPing.xpt"/>    
     <exec dir="${moz.dir}/base" executable="${moz.dir}/base/xpidl.exe" failonerror="true">
       <arg line="-m typelib -w -v -I -o ffPing.idl"/>
     </exec>
     <echo message="Building ffProfiles.xpt"/>    
     <exec dir="${moz.dir}/base" executable="${moz.dir}/base/xpidl.exe" failonerror="true">
       <arg line="-m typelib -w -v -I -o ffProfiles.idl"/>
     </exec>
     <echo message="Building ffError.xpt"/>    
     <exec dir="${moz.dir}/base" executable="${moz.dir}/base/xpidl.exe" failonerror="true">
       <arg line="-m typelib -w -v -I -o ffError.idl"/>
     </exec> 
     <echo message="Building ffParser.xpt"/>    
     <exec dir="${moz.dir}/base" executable="${moz.dir}/base/xpidl.exe" failonerror="true">
       <arg line="-m typelib -w -v -I -o ffParser.idl"/>
     </exec>  
     <echo message="Building ffDisk.xpt"/>    
     <exec dir="${moz.dir}/base" executable="${moz.dir}/base/xpidl.exe" failonerror="true">
       <arg line="-m typelib -w -v -I -o ffDisk.idl"/>
     </exec>        
   </target>    </target>
  
  <target name="dist" depends="compile">  <!-- create distribute files -->
    <!-- create XPI in donwloads directory -->  <target name="build" description="Copy files from interface creation and staging">        
                <zip destfile="downloads/${ant.project.name}-${version}.xpi" basedir="${build}" compress="true"/>    <copy todir="${build.dir}/components">
       <fileset dir="${moz.dir}/base">
         <include name="nsForecastfox.xpt"/>  
         <include name="ffPing.xpt"/>
         <include name="ffProfiles.xpt"/>
         <include name="ffError.xpt"/>
         <include name="ffParser.xpt"/>
         <include name="ffDisk.xpt"/>
       </fileset>
     </copy>
           
    <!-- cleanup build directory -->        <copy todir="${build.dir}">
    <ant target="clean"/>      <fileset dir="${staging.dir}">
         <exclude name="chrome/**"/>
         <exclude name="components/*.idl"/>
       </fileset>
     </copy>
   </target>    </target>
       
     <target name="dist" depends="clean, init, staging, xpt, build" description="Create distribution files">
       <zip destfile="${build.dir}/chrome/${ant.project.name}.jar" basedir="${staging.dir}/chrome" compress="false"/>    
             <zip destfile="${downloads.dir}/${ant.project.name}-${app.version}.xpi" basedir="${build.dir}" compress="true"/>    
   
  <target name="clean">    <!-- cleanup when done -->
    <delete dir="${build}"/>        <ant target="clean"/>
    <delete dir="${mozilla}/base"/> 
   </target>    </target>
    
 </project>  </project>
   

Removed from v.1.10  
changed lines
  Added in v.1.17


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