File:  [mozdev] / forecastfox / Attic / build.xml
Revision 1.9: download - view: text, annotated - select for diffs - revision graph
Thu Jan 6 06:32:58 2005 UTC (15 years ago) by jstritar
Branches: MAIN
CVS tags: HEAD
Move licensing info to one text file.

<?xml version="1.0"?>

<!-- project used to build xpi -->
<project name="forecastfox" default="dist">
  <property name="build"      location="build"/>
  <property name="src"        location="src"/>
  <property name="downloads"  location="downloads"/>
  <property name="comp"       value="nsForecastfox"/>
  <property name="version"    value="testing"/>

  <target name="init">  
    <!-- create the build directory structure used by compile -->
    <mkdir dir="${downloads}"/>	  
    <mkdir dir="${build}"/>
    <mkdir dir="${build}/chrome"/>
    <mkdir dir="${build}/components"/>
    <mkdir dir="${build}/defaults"/>
  <target name="compile" depends="init">
    <!-- zip chrome directory -->  
    <zip destfile="${build}/chrome/${}.jar" basedir="${src}/chrome" compress="false"/> 
    <!-- execute component build -->
    <ant antfile="component.xml"/>
    <!-- copy components -->
    <copy todir="${build}/components">
      <fileset dir="${src}/components">
        <include name="${comp}.*"/>
        <exclude name="${comp}.idl"/>        
    <!-- copy defaults -->
    <copy todir="${build}/defaults">
      <fileset dir="${src}/defaults"/>
    <!-- copy install and license -->
    <copy todir="${build}">
      <fileset dir="${src}">
        <include name="install.*"/>
      	<include name="license.txt"/>
  <target name="dist" depends="compile">
    <!-- create XPI in donwloads directory -->
		<zip destfile="downloads/${}-${version}.xpi" basedir="${build}" compress="true"/>
    <!-- cleanup build directory -->    
    <ant target="clean"/>

  <target name="clean">
    <delete dir="${build}"/>    
    <delete dir="${mozilla}/base"/>

FreeBSD-CVSweb <>