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 -->
		<tstamp/>
	  
		<!-- Create the build directory structure used by compile -->
		<mkdir dir="${build}"/>
	</target>

  <!-- zip chrome directory -->
  <target name="chrome" depends="init">
    <mkdir dir="${build}/chrome"/>
		<zip destfile="${build}/chrome/${ant.project.name}.jar" basedir="${chrome}"/>
  </target>
    
  <!-- copy components -->
  <target name="components" depends="chrome">
    <mkdir dir="${build}/components"/>
		<copy todir="${build}/components">
		  <fileset dir="${components}">
		    <exclude name="*.idl"/>
		  </fileset>
    </copy>
  </target>
  
  <!-- copy defaults -->
  <target name="defaults" depends="components">
    <mkdir dir="${build}/defaults"/>
		<copy todir="${build}/defaults">
		  <fileset dir="${defaults}"/>
    </copy>
  </target>
  
  <!-- copy install -->
  <target name="install" depends="defaults">
		<copy todir="${build}">
		  <fileset dir="src">
		    <include name="install.*"/>
		  </fileset>
    </copy>
  </target>
    
  <target name="xpi" depends="install">
		<zip destfile="${downloads}/${ant.project.name}-${version}.xpi" basedir="${build}"/>
		<delete dir="${build}"/>
	</target>
</project>

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