Diff for /forecastfox/Attic/build.xml between versions 1.11 and 1.21

version 1.11, 2005/05/26 05:23:55 version 1.21, 2005/06/28 23:13:21
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="app.version"     value="0.7.7"/>  <!-- check if properties file exists -->
  <property name="app.guid"        value="{0538E3E3-7E9B-4d49-8831-A227C80A7AD3}"/>  <available file="build.properties" property="has.props"/>
  <property name="build.dir"       location="build"/>  <fail unless="has.props" message="You need to create a build.properties file. Please see build-dist.properties for an example."/>
  <property name="staging.dir"     location="staging"/>
  <property name="downloads.dir"   location="downloads"/>  <property file="build.properties"/>
  <property name="src.dir"         location="src"/> 
  <property name="xpidl.dir"       location="xpidl"/> 
  <property name="moz.dir"         location="c:\program files\mozilla\firefox\"/> 
       
   <!-- create build directories -->    <!-- create build directories -->
   <target name="init" description="Create build environment">    <target name="init" description="Create build environment">
Line 70 Line 67
     <copy todir="${staging.dir}" overwrite="true">      <copy todir="${staging.dir}" overwrite="true">
       <fileset dir="${src.dir}">        <fileset dir="${src.dir}">
         <exclude name="**/images/**"/>          <exclude name="**/images/**"/>
           <exclude name="**/locale/*/*/*.dtd"/>
         </fileset>
         <filterset begintoken="#" endtoken="#">
           <filter token="VERSION" value="${app.version}"/>
           <filter token="BUILD" value="${app.build}"/>
           <filter token="GUID" value="${app.guid}"/>
         </filterset>      
       </copy>
           
       <!-- replace version and locale strings in UTF-8 files -->
       <copy todir="${staging.dir}" overwrite="true" encoding="utf-8">
         <fileset dir="${src.dir}">
           <include name="**/locale/*/*/*.dtd"/>
       </fileset>        </fileset>
       <filterset begintoken="#" endtoken="#">        <filterset begintoken="#" endtoken="#">
         <filter token="VERSION" value="${app.version}"/>          <filter token="VERSION" value="${app.version}"/>
Line 116 Line 126
     <echo message="Building ffParser.xpt"/>          <echo message="Building ffParser.xpt"/>    
     <exec dir="${moz.dir}/base" executable="${moz.dir}/base/xpidl.exe" failonerror="true">      <exec dir="${moz.dir}/base" executable="${moz.dir}/base/xpidl.exe" failonerror="true">
       <arg line="-m typelib -w -v -I -o ffParser.idl"/>        <arg line="-m typelib -w -v -I -o ffParser.idl"/>
    </exec>         </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>
   
   <!-- create distribute files -->    <!-- create distribute files -->
Line 127 Line 141
         <include name="ffPing.xpt"/>          <include name="ffPing.xpt"/>
         <include name="ffProfiles.xpt"/>          <include name="ffProfiles.xpt"/>
         <include name="ffError.xpt"/>          <include name="ffError.xpt"/>
        <include name="ffParser.xpt"/>              <include name="ffParser.xpt"/>
         <include name="ffDisk.xpt"/>
       </fileset>        </fileset>
     </copy>      </copy>
           
Line 141 Line 156
           
   <target name="dist" depends="clean, init, staging, xpt, build" description="Create distribution files">    <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="${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"/>              <zip destfile="${downloads.dir}/${xpi.name}" basedir="${build.dir}" compress="true"/>    
   
     <!-- cleanup when done -->      <!-- cleanup when done -->
     <ant target="clean"/>      <ant target="clean"/>

Removed from v.1.11  
changed lines
  Added in v.1.21


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