File:  [mozdev] / checky / checky-extension / build.xml
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Sat Jul 10 11:55:12 2004 UTC (14 years, 4 months ago) by joachim
Branches: MAIN
CVS tags: HEAD
Checky 2.2 (Mozilla, Firefox, Netscape one distribution)

<?xml version="1.0" encoding="ISO-8859-1"?>

<!--

****** BEGIN LICENSE BLOCK *****
Version: MPL 1.1/GPL 2.0/LGPL 2.1

The contents of this file are subject to the Mozilla Public License Version 
1.1 (the "License"); you may not use this file except in compliance with 
the License. You may obtain a copy of the License at 
http://www.mozilla.org/MPL/

Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.

The Original Code is Checky.

The Initial Developer of the Original Code is
Joachim Schreiber (yobiz@users.sourceforge.net).
Portions created by the Initial Developer are Copyright (C) 2002-2004
the Initial Developer. All Rights Reserved.

Contributor(s):
Mike Hommey (mh@glandium.org)

Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
in which case the provisions of the GPL or the LGPL are applicable instead
of those above. If you wish to allow use of your version of this file only
under the terms of either the GPL or the LGPL, and not to allow others to
use your version of this file under the terms of the MPL, indicate your
decision by deleting the provisions above and replace them with the notice
and other provisions required by the GPL or the LGPL. If you do not delete
the provisions above, a recipient may use your version of this file under
the terms of any one of the MPL, the GPL or the LGPL.

Checky - Resource Validation and Analysis Extension for Mozilla and Firefox.
Easy to use Interface to many different free and commercial Online 
Validation and Analysis Services. Any rights not expressly granted herein 
are reserved by their owners. 
Please visit all Service Web Sites for more informations about terms of usage 
before using Checky the first time. Hyperlinks are located at 
http://checky.sourceforge.net/#Services

***** END LICENSE BLOCK *****

-->

<!-- *** A simple Ant build script for developing and testing mozilla/firebird extensions *** -->


<project name="Checky" default="dist" basedir=".">

	<property file="build.properties" />

	<property name="PLUGIN.NAME" value="checky" />
	<property name="PLUGIN.VERSION" value="2.2" />

	<target name="prepare" description="Create directories.">
		<mkdir dir="target" />
		<mkdir dir="target/extension/chrome" />
		<mkdir dir="target/xpi" />
		<mkdir dir="target/zip" />
		<mkdir dir="target/jar" />
		<mkdir dir="target/jar/chrome" />
		<mkdir dir="target/jar/defaults/preferences" />
		<mkdir dir="target/src" />
		<mkdir dir="target/distributions" />
	</target>

	<target name="clean" description="Clean build directory">
		<delete dir="target" />
	</target>

	<target name="dist" description="Create Checky XPI and SRC distributions for Mozilla nd Firebird" depends="clean,prepare,src,xpi">
		<copy todir="target/distributions">
			<fileset dir="target/zip" />
			<fileset dir="target/xpi" />
		</copy>
	</target>


	<target name="xpi" description="Create Firefox XPI distribution">

		<copy todir="target/extension/chrome">
			<fileset dir="src/xpi/${PLUGIN.NAME}" />
		</copy>

		<copy todir="target/extension/chrome">
			<fileset dir="src/xpi/${PLUGIN.NAME}" />
		</copy>

		<zip zipfile="target/jar/chrome/${PLUGIN.NAME}.jar" basedir="target/extension/chrome" />

		<copy todir="target/jar/defaults/preferences">
			<fileset dir="src/xpi/install" includes="**/checky*"/>
		</copy>
		<copy todir="target/jar">
			<fileset dir="src/xpi/install"/>
		</copy>

		<zip zipfile="target/xpi/${PLUGIN.NAME}-${PLUGIN.VERSION}.xpi" basedir="target/jar" />

	</target>

	<target name="src" description="Create SRC distribution">

		<copy todir="target/src">
			<fileset dir="src/xpi" />
		</copy>

		<zip zipfile="target/zip/${PLUGIN.NAME}-${PLUGIN.VERSION}-src.zip" basedir="target/src" />

		<tar destfile="target/zip/${PLUGIN.NAME}-${PLUGIN.VERSION}-src.tar">
			<tarfileset dir="target/src" preserveLeadingSlashes="false">
				<include name="*/**"/>
			</tarfileset>
		</tar>

		<gzip zipfile="target/zip/${PLUGIN.NAME}-${PLUGIN.VERSION}-src.tar.gz" src="target/zip/${PLUGIN.NAME}-${PLUGIN.VERSION}-src.tar"/>
		<bzip2 zipfile="target/zip/${PLUGIN.NAME}-${PLUGIN.VERSION}-src.tar.bz2" src="target/zip/${PLUGIN.NAME}-${PLUGIN.VERSION}-src.tar"/>
		
	</target>

	<target name="update.firefox" description="">
		<delete dir="firefox" />
		<mkdir dir="firefox" />

		<copy todir="firefox">
			<fileset dir="src_firefox" />
		</copy>
	</target>

	<target name="update.mozilla" description="">
		<delete dir="mozilla" />
		<mkdir dir="mozilla" />

		<copy todir="mozilla">
			<fileset dir="src_mozilla" />
		</copy>
	</target>

</project>

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