File:  [mozdev] / synckolab / build.xml
Revision 1.10: download - view: text, annotated - select for diffs - revision graph
Tue Nov 20 23:27:25 2012 UTC (7 years, 3 months ago) by niko
Branches: MAIN
CVS tags: HEAD
version dump

    1: <?xml version="1.0" encoding="UTF-8"?>
    2: <!-- ====================================================================== 
    3: 	SyncKolab: Sync your contacts with imap 
    4: 	Author: Niko Berger
    5: 	====================================================================== -->
    6: <project name="SyncKolab" default="default">
    7: 	<description>
    8: 		Sync your contacts with imap
    9: 	</description>
   10: 	<property name="version" value="3.0.1" />
   11: 
   12: 	<!-- ================================= target: default ================================= -->
   13: 	<target name="default" depends="depends" description="Sync your contacts with imap">
   14: 		<delete>
   15: 			<fileset dir="build">
   16: 				<include name="**/*.*" />
   17: 			</fileset>
   18: 		</delete>
   19: 		<copy todir="build">
   20: 			<fileset dir="src">
   21: 				<include name="**/*.*" />
   22: 				<exclude name="**/*.orig" />
   23: 			</fileset>
   24: 		</copy>
   25: 		<zip destfile="build/chrome/synckolab.jar" basedir="build/chrome" />
   26: 		<zip destfile="synckolab-${version}.xpi" basedir="build" />
   27: 	</target>
   28: 
   29: 	<target name="nightly" description="nighlty build">
   30: 
   31: 		<copy todir="build">
   32: 			<fileset dir="src">
   33: 				<include name="**/*.*" />
   34: 			</fileset>
   35: 		</copy>
   36: 		<replace dir="build" value="http://www.gargan.org/extensions/update.rdf">
   37: 			<include name="**/*.*" />
   38: 		</replace>
   39: 
   40: 		<zip destfile="synckolab-AMO-${version}.xpi" />
   41: 	</target>
   42: 	<!-- - - - - - - - - - - - - - - - - - 
   43: 		target: depends
   44: 	- - - - - - - - - - - - - - - - - -->
   45: 	<target name="depends">
   46: 	</target>
   47: 
   48: 	<!-- Run QUnit -->
   49: 	<target name="test" description="run qunit tests">
   50: 		<java dir="." fork="true" classname="org.mozilla.javascript.tools.shell.Main">
   51: 			<classpath>
   52: 				<fileset dir="test/lib"><include name="js.jar"/></fileset>
   53: 			</classpath>
   54: 			<arg value="-opt"/>
   55: 			<arg value="-1"/>
   56: 			<arg value="-debug"/>
   57: 			<arg value="test/suite.js"/>
   58: 		</java>
   59: 	</target>
   60: </project>

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