Diff for /forecastfox/Attic/build.xml between versions 1.1 and 1.20

version 1.1, 2004/11/16 15:10:39 version 1.20, 2005/06/26 22:07:29
Line 1 Line 1
 <?xml version="1.0"?>  <?xml version="1.0"?>
<project name="forecastfox" default="xpi"><!-- ***** BEGIN LICENSE BLOCK *****
    - Version: MPL 1.1/GPL 2.0/LGPL 2.1
    - The contents of this file are subject to the Mozilla Public License Version
    - 1.1 (the "License"); you may not use this file except in compliance with
    - the License. You may obtain a copy of the License at
    - http://www.mozilla.org/MPL/
    - Software distributed under the License is distributed on an "AS IS" basis,
    - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
    - for the specific language governing rights and limitations under the
    - License.
    - The Original Code is Forecastfox.
    - The Initial Developer of the Original Code is
    - Jon Stritar <jstritar@MIT.EDU>.
    - Portions created by the Initial Developer are Copyright (C) 2005
    - the Initial Developer. All Rights Reserved.
    - Contributor(s):
    - Jon Stritar <jstritar@MIT.EDU>
    - Richard Klein <richwklein@mchsi.com>
    - Alternatively, the contents of this file may be used under the terms of
    - either the GNU General Public License Version 2 or later (the "GPL"), or
    - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
    - in which case the provisions of the GPL or the LGPL are applicable instead
    - of those above. If you wish to allow use of your version of this file only
    - under the terms of either the GPL or the LGPL, and not to allow others to
    - use your version of this file under the terms of the MPL, indicate your
    - decision by deleting the provisions above and replace them with the notice
    - and other provisions required by the LGPL or the GPL. If you do not delete
    - the provisions above, a recipient may use your version of this file under
    - the terms of any one of the MPL, the GPL or the LGPL.
    - ***** END LICENSE BLOCK ***** -->
        <property name="build"      location="build"/><!-- project used to build xpi -->
        <property name="chrome"     location="src/chrome"/><project name="forecastfox" default="dist">
  <property name="components" location="src/components"/>  <property file="build.properties"/>
  <property name="defaults"   location="src/defaults"/>  
  <property name="downloads"  location="downloads"/>  <!-- create build directories -->
        <property name="version"    value="0.5.8"/>  <target name="init" description="Create build environment">
              <mkdir dir="${downloads.dir}"/>
        <target name="init">    <mkdir dir="${staging.dir}"/>    
                <!-- Create the time stamp -->    <mkdir dir="${build.dir}"/>
                <tstamp/>    <mkdir dir="${build.dir}/chrome"/>    
                <!-- Create the build directory structure used by compile --> 
                <mkdir dir="${build}"/> 
  <!-- zip chrome directory --> 
  <target name="chrome" depends="init"> 
    <mkdir dir="${build}/chrome"/> 
                <zip destfile="${build}/chrome/${ant.project.name}.jar" basedir="${chrome}"/> 
   </target>    </target>
     <!-- clean up build directories -->
     <target name="clean">
       <delete dir="${build.dir}"/>    
       <delete dir="${moz.dir}/base"/>
       <delete dir="${staging.dir}"/>
     <!-- staging files -->
     <target name="staging" description="Copy files to staging and preprocess">
  <!-- copy components -->    <!-- replace version and locale strings -->
  <target name="components" depends="chrome">    <copy todir="${staging.dir}" overwrite="true">
    <mkdir dir="${build}/components"/>      <fileset dir="${src.dir}">
                <copy todir="${build}/components">        <exclude name="**/images/**"/>
                  <fileset dir="${components}">        <exclude name="**/locale/*/*/*.dtd"/>
                    <exclude name="*.idl"/>      </fileset>
                  </fileset>      <filterset begintoken="#" endtoken="#">
         <filter token="VERSION" value="${app.version}"/>
         <filter token="BUILD" value="${app.build}"/>
         <filter token="GUID" value="${app.guid}"/>
     </copy>      </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"/>
         <filterset begintoken="#" endtoken="#">
           <filter token="VERSION" value="${app.version}"/>
           <filter token="GUID" value="${app.guid}"/>
       <!-- copy binary files to staging -->
       <copy todir="${staging.dir}" overwrite="true">
         <fileset dir="${src.dir}">
           <include name="**/images/**"/>
   </target>    </target>
  <!-- copy defaults -->  <!-- build interfaces -->
  <target name="defaults" depends="components">  <target name="xpt" description="Create interface definition files">
    <mkdir dir="${build}/defaults"/>    
                <copy todir="${build}/defaults">    <!-- copy interfaces to mozilla dir -->
                  <fileset dir="${defaults}"/>    <unzip src="${xpidl.dir}/base.zip" dest="${moz.dir}"/>
     <copy todir="${moz.dir}/base">
       <fileset dir="${staging.dir}/components">
         <include name="*.idl"/>    
     </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"/>
       <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"/>
       <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"/>
       <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"/>
       <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"/>
       <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"/>
   </target>    </target>
  <!-- copy install -->  <!-- create distribute files -->
  <target name="install" depends="defaults">  <target name="build" description="Copy files from interface creation and staging">        
                <copy todir="${build}">    <copy todir="${build.dir}/components">
                  <fileset dir="src">      <fileset dir="${moz.dir}/base">
                    <include name="install.*"/>        <include name="nsForecastfox.xpt"/>  
                  </fileset>        <include name="ffPing.xpt"/>
         <include name="ffProfiles.xpt"/>
         <include name="ffError.xpt"/>
         <include name="ffParser.xpt"/>
         <include name="ffDisk.xpt"/>
     <copy todir="${build.dir}">
       <fileset dir="${staging.dir}">
         <exclude name="chrome/**"/>
         <exclude name="components/*.idl"/>
     </copy>      </copy>
   </target>    </target>
  <target name="xpi" depends="install">  <target name="dist" depends="clean, init, staging, xpt, build" description="Create distribution files">
                <zip destfile="${downloads}/${ant.project.name}-${version}.xpi" basedir="${build}"/>    <zip destfile="${build.dir}/chrome/${ant.project.name}.jar" basedir="${staging.dir}/chrome" compress="false"/>    
                <delete dir="${build}"/>          <zip destfile="${downloads.dir}/${xpi.name}" basedir="${build.dir}" compress="true"/>    
     <!-- cleanup when done -->
     <ant target="clean"/>
 </project>  </project>

Removed from v.1.1  
changed lines
  Added in v.1.20

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