File:  [mozdev] / forecastfox / Attic / build.xml
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Nov 16 15:10:39 2004 UTC (15 years, 4 months ago) by richwklein
Branches: MAIN
CVS tags: HEAD
add ant build script

<?xml version="1.0"?>
<project name="forecastfox" default="xpi">

	<property name="build"      location="build"/>
	<property name="chrome"     location="src/chrome"/>
  <property name="components" location="src/components"/>
  <property name="defaults"   location="src/defaults"/>
  <property name="downloads"  location="downloads"/>
	<property name="version"    value="0.5.8"/>
	<target name="init">
		<!-- Create the time stamp -->
		<!-- 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/${}.jar" basedir="${chrome}"/>
  <!-- copy components -->
  <target name="components" depends="chrome">
    <mkdir dir="${build}/components"/>
		<copy todir="${build}/components">
		  <fileset dir="${components}">
		    <exclude name="*.idl"/>
  <!-- copy defaults -->
  <target name="defaults" depends="components">
    <mkdir dir="${build}/defaults"/>
		<copy todir="${build}/defaults">
		  <fileset dir="${defaults}"/>
  <!-- copy install -->
  <target name="install" depends="defaults">
		<copy todir="${build}">
		  <fileset dir="src">
		    <include name="install.*"/>
  <target name="xpi" depends="install">
		<zip destfile="${downloads}/${}-${version}.xpi" basedir="${build}"/>
		<delete dir="${build}"/>

FreeBSD-CVSweb <>