File:  [mozdev] / newsmonkey / src / build.xml
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Sat Jun 24 15:26:11 2006 UTC (12 years, 9 months ago) by infoman
Branches: MAIN
CVS tags: HEAD
adding phing buildfile

<?xml version="1.0"?>
<project name="NewsMonkey" default="xpi" basedir=".">
	<target name="tempfiles" description="Copy extension files to temporary location and clean unused CVS dirs">
		<mkdir dir="../build-stage" />
		<copy todir="../build-stage">
			<fileset dir=".">
				<include name="**" />
				<exclude name="**CVS" />
				<exclude name="build.xml" />
			</fileset>
		</copy>
	</target>
	<target name="jar" description="Create chrome &quot;.jar&quot; archive" depends="tempfiles">
		<mkdir dir="../build" />
		<mkdir dir="../build/chrome" />
		<zip destfile="../build/chrome/newsmonkey.jar" basedir="../build-stage/chrome" />
		<delete includeemptydirs="true" dir="../build-stage/chrome" />
	</target>
	<target name="xpi" description="Create &quot;.xpi&quot; package for installing" depends="jar">
		<move todir="../build">
			<fileset dir="../build-stage">
				 <include name="**" />
				 <exclude name="chrome" />
			</fileset>
		</move>
		<delete includeemptydirs="true" dir="../build-stage" />
		<zip destfile="../downloads/newsmonkey-dev.xpi" basedir="../build" />
		<delete includeemptydirs="true" dir="../build" />
	</target>
	<target name="clean" description="Remove temp files (if necessary)">
		<delete includeemptydirs="true" dir="../build-stage" />
		<delete includeemptydirs="true" dir="../build" />
	</target>
</project>

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