Diff for /forecastfox/Attic/build.xml between versions 1.4 and 1.16

version 1.4, 2004/11/16 19:24:15 version 1.16, 2005/06/03 21:56:15
Line 1 Line 1
 <?xml version="1.0"?>  <?xml version="1.0"?>
<project name="forecastfox" default="dist"><!-- ***** 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="src"        location="src"/><project name="forecastfox" default="dist">
  <property name="downloads"  location="downloads"/>  <property name="app.version"     value="0.7.9"/>
        <property name="mozilla"    location="/program files/mozilla/firefox/"/>  <property name="app.guid"        value="{0538E3E3-7E9B-4d49-8831-A227C80A7AD3}"/>
        <property name="xpidl"      location="xpidl"/>  <property name="build.dir"       location="build"/>
  <property name="comp"       value="nsForecastfox"/>  <property name="staging.dir"     location="staging"/>
   <property name="downloads.dir"   location="downloads"/>
   <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 -->
   <target name="init" description="Create build environment">
     <mkdir dir="${downloads.dir}"/>
     <mkdir dir="${staging.dir}"/>    
     <mkdir dir="${build.dir}"/>
     <mkdir dir="${build.dir}/chrome"/>    
   <!-- clean up build directories -->
   <target name="clean">
     <delete dir="${build.dir}"/>    
     <delete dir="${moz.dir}/base"/>
     <delete dir="${staging.dir}"/>
        <target name="init">  <!-- staging files -->
                <!-- create the time stamp -->  <target name="staging" description="Copy files to staging and preprocess">
              <!-- replace version and locale strings -->
                <!-- create the build directory structure used by compile -->    <copy todir="${staging.dir}" overwrite="true">
    <mkdir dir="${downloads}"/>         <fileset dir="${src.dir}">
                <mkdir dir="${build}"/>        <exclude name="**/images/**"/>
    <mkdir dir="${build}/chrome"/> 
    <mkdir dir="${build}/components"/> 
    <mkdir dir="${build}/defaults"/> 
  <target name="compile" depends="init"> 
    <!-- zip chrome directory -->   
                <zip destfile="${build}/chrome/${ant.project.name}.jar" basedir="${src}/chrome"/>  
    <!-- unzip base.zip used in component build --> 
    <unzip src="${xpidl}/base.zip" dest="${mozilla}"/> 
    <copy todir="${mozilla}/base"> 
      <fileset dir="${src}/components"> 
        <exclude name="*.xpt"/> 
       </fileset>        </fileset>
         <filterset begintoken="#" endtoken="#">
           <filter token="VERSION" value="${app.version}"/>
           <filter token="GUID" value="${app.guid}"/>
     </copy>      </copy>
    <!-- execute component build -->    <!-- copy binary files to staging -->
    <exec dir="${mozilla}/base" executable="${mozilla}/base/xpidl.exe">    <copy todir="${staging.dir}" overwrite="true">
      <arg line="-m typelib -w -v -I -o nsForecastfox.idl"/>      <fileset dir="${src.dir}">
    </exec>           <include name="**/images/**"/>
   <!-- build interfaces -->
   <target name="xpt" description="Create interface definition files">
    <!-- copy components -->    <!-- copy interfaces to mozilla dir -->
    <copy todir="${build}/components">    <unzip src="${xpidl.dir}/base.zip" dest="${moz.dir}"/>
      <fileset dir="${mozilla}/base">    <copy todir="${moz.dir}/base">
        <include name="${comp}.*"/>      <fileset dir="${staging.dir}/components">
        <exclude name="${comp}.idl"/>                <include name="*.idl"/>    
       </fileset>        </fileset>
    </copy>     </copy>
    <!-- copy defaults -->    <!-- create interfaces -->
    <copy todir="${build}/defaults">    <echo message="Building nsForecastfox.xpt"/>
      <fileset dir="${src}/defaults"/>    <exec dir="${moz.dir}/base" executable="${moz.dir}/base/xpidl.exe" failonerror="true">
    </copy>        <arg line="-m typelib -w -v -I -o nsForecastfox.idl"/>
    <!-- copy install -->    <echo message="Building ffPing.xpt"/>    
    <copy todir="${build}">    <exec dir="${moz.dir}/base" executable="${moz.dir}/base/xpidl.exe" failonerror="true">
      <fileset dir="${src}">      <arg line="-m typelib -w -v -I -o ffPing.idl"/>
        <include name="install.*"/>            </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"/>
     <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"/>
   <!-- create distribute files -->
   <target name="build" description="Copy files from interface creation and staging">        
     <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>        </fileset>
    </copy>          </copy>
  <target name="dist" depends="compile"> 
    <!-- create XPI in donwloads directory --> 
                <zip destfile="downloads/${ant.project.name}-${DSTAMP}${TSTAMP}.xpi" basedir="${build}"/> 
    <!-- cleanup build directory -->        <copy todir="${build.dir}">
    <ant target="clean"/>      <fileset dir="${staging.dir}">
        </target>        <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}/${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.4  
changed lines
  Added in v.1.16

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