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

version 1.9, 2005/01/06 06:32:58 version 1.21, 2005/06/28 23:13:21
Line 1 Line 1
 <?xml version="1.0"?>  <?xml version="1.0"?>
   <!-- ***** 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 ***** -->
 <!-- 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"/>  <!-- check if properties file exists -->
  <property name="src"        location="src"/>  <available file="build.properties" property="has.props"/>
  <property name="downloads"  location="downloads"/>  <fail unless="has.props" message="You need to create a build.properties file. Please see build-dist.properties for an example."/>
  <property name="comp"       value="nsForecastfox"/> 
  <property name="version"    value="testing"/> 
  <target name="init">    <property file="build.properties"/>
    <!-- create the build directory structure used by compile -->  
    <mkdir dir="${downloads}"/>        <!-- create build directories -->
    <mkdir dir="${build}"/>  <target name="init" description="Create build environment">
    <mkdir dir="${build}/chrome"/>    <mkdir dir="${downloads.dir}"/>
    <mkdir dir="${build}/components"/>    <mkdir dir="${staging.dir}"/>    
    <mkdir dir="${build}/defaults"/>    <mkdir dir="${build.dir}"/>
  </target>    <mkdir dir="${build.dir}/chrome"/>    
  <target name="compile" depends="init">  
    <!-- zip chrome directory -->    <!-- clean up build directories -->
    <zip destfile="${build}/chrome/${ant.project.name}.jar" basedir="${src}/chrome" compress="false"/  <target name="clean">
        <delete dir="${build.dir}"/>    
    <!-- execute component build -->    <delete dir="${moz.dir}/base"/>
    <ant antfile="component.xml"/>    <delete dir="${staging.dir}"/>
    <!-- copy components -->  
    <copy todir="${build}/components">  <!-- staging files -->
      <fileset dir="${src}/components">  <target name="staging" description="Copy files to staging and preprocess">
        <include name="${comp}.*"/>    
        <exclude name="${comp}.idl"/>            <!-- replace version and locale strings -->
     <copy todir="${staging.dir}" overwrite="true">
       <fileset dir="${src.dir}">
         <exclude name="**/images/**"/>
         <exclude name="**/locale/*/*/*.dtd"/>
       </fileset>        </fileset>
    </copy>       <filterset begintoken="#" endtoken="#">
             <filter token="VERSION" value="${app.version}"/>
    <!-- copy defaults -->        <filter token="BUILD" value="${app.build}"/>
    <copy todir="${build}/defaults">        <filter token="GUID" value="${app.guid}"/>
      <fileset dir="${src}/defaults"/>      </filterset>      
    </copy>      </copy>
    <!-- copy install and license -->    <!-- replace version and locale strings in UTF-8 files -->
    <copy todir="${build}">    <copy todir="${staging.dir}" overwrite="true" encoding="utf-8">
      <fileset dir="${src}">      <fileset dir="${src.dir}">
        <include name="install.*"/>        <include name="**/locale/*/*/*.dtd"/>
        <include name="license.txt"/> 
       </fileset>        </fileset>
    </copy>            <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>
  <target name="dist" depends="compile">  <!-- build interfaces -->
    <!-- create XPI in donwloads directory -->  <target name="xpt" description="Create interface definition files">
                <zip destfile="downloads/${ant.project.name}-${version}.xpi" basedir="${build}" compress="true"/> 
    <!-- cleanup build directory -->        <!-- copy interfaces to mozilla dir -->
    <ant target="clean"/>    <unzip src="${xpidl.dir}/base.zip" dest="${moz.dir}"/>
     <copy todir="${moz.dir}/base">
       <fileset dir="${staging.dir}/components">
         <include name="*.idl"/>    
     <!-- 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>
  <target name="clean">  <!-- create distribute files -->
    <delete dir="${build}"/>      <target name="build" description="Copy files from interface creation and staging">        
    <delete dir="${mozilla}/base"/>    <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"/>
     <copy todir="${build.dir}">
       <fileset dir="${staging.dir}">
         <exclude name="chrome/**"/>
         <exclude name="components/*.idl"/>
   <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}/${xpi.name}" basedir="${build.dir}" compress="true"/>    
     <!-- cleanup when done -->
     <ant target="clean"/>
   </target>    </target>
 </project>  </project>

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

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