Annotation of checky/checky-extension/build.xml, revision 1.1

1.1     ! joachim     1: <?xml version="1.0" encoding="ISO-8859-1"?>
        !             2: 
        !             3: <!--
        !             4: 
        !             5: ****** BEGIN LICENSE BLOCK *****
        !             6: Version: MPL 1.1/GPL 2.0/LGPL 2.1
        !             7: 
        !             8: The contents of this file are subject to the Mozilla Public License Version 
        !             9: 1.1 (the "License"); you may not use this file except in compliance with 
        !            10: the License. You may obtain a copy of the License at 
        !            11: http://www.mozilla.org/MPL/
        !            12: 
        !            13: Software distributed under the License is distributed on an "AS IS" basis,
        !            14: WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
        !            15: for the specific language governing rights and limitations under the
        !            16: License.
        !            17: 
        !            18: The Original Code is Checky.
        !            19: 
        !            20: The Initial Developer of the Original Code is
        !            21: Joachim Schreiber (yobiz@users.sourceforge.net).
        !            22: Portions created by the Initial Developer are Copyright (C) 2002-2004
        !            23: the Initial Developer. All Rights Reserved.
        !            24: 
        !            25: Contributor(s):
        !            26: Mike Hommey (mh@glandium.org)
        !            27: 
        !            28: Alternatively, the contents of this file may be used under the terms of
        !            29: either the GNU General Public License Version 2 or later (the "GPL"), or
        !            30: the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
        !            31: in which case the provisions of the GPL or the LGPL are applicable instead
        !            32: of those above. If you wish to allow use of your version of this file only
        !            33: under the terms of either the GPL or the LGPL, and not to allow others to
        !            34: use your version of this file under the terms of the MPL, indicate your
        !            35: decision by deleting the provisions above and replace them with the notice
        !            36: and other provisions required by the GPL or the LGPL. If you do not delete
        !            37: the provisions above, a recipient may use your version of this file under
        !            38: the terms of any one of the MPL, the GPL or the LGPL.
        !            39: 
        !            40: Checky - Resource Validation and Analysis Extension for Mozilla and Firefox.
        !            41: Easy to use Interface to many different free and commercial Online 
        !            42: Validation and Analysis Services. Any rights not expressly granted herein 
        !            43: are reserved by their owners. 
        !            44: Please visit all Service Web Sites for more informations about terms of usage 
        !            45: before using Checky the first time. Hyperlinks are located at 
        !            46: http://checky.sourceforge.net/#Services
        !            47: 
        !            48: ***** END LICENSE BLOCK *****
        !            49: 
        !            50: -->
        !            51: 
        !            52: <!-- *** A simple Ant build script for developing and testing mozilla/firebird extensions *** -->
        !            53: 
        !            54: 
        !            55: <project name="Checky" default="dist" basedir=".">
        !            56: 
        !            57:        <property file="build.properties" />
        !            58: 
        !            59:        <property name="PLUGIN.NAME" value="checky" />
        !            60:        <property name="PLUGIN.VERSION" value="2.2" />
        !            61: 
        !            62:        <target name="prepare" description="Create directories.">
        !            63:                <mkdir dir="target" />
        !            64:                <mkdir dir="target/extension/chrome" />
        !            65:                <mkdir dir="target/xpi" />
        !            66:                <mkdir dir="target/zip" />
        !            67:                <mkdir dir="target/jar" />
        !            68:                <mkdir dir="target/jar/chrome" />
        !            69:                <mkdir dir="target/jar/defaults/preferences" />
        !            70:                <mkdir dir="target/src" />
        !            71:                <mkdir dir="target/distributions" />
        !            72:        </target>
        !            73: 
        !            74:        <target name="clean" description="Clean build directory">
        !            75:                <delete dir="target" />
        !            76:        </target>
        !            77: 
        !            78:        <target name="dist" description="Create Checky XPI and SRC distributions for Mozilla nd Firebird" depends="clean,prepare,src,xpi">
        !            79:                <copy todir="target/distributions">
        !            80:                        <fileset dir="target/zip" />
        !            81:                        <fileset dir="target/xpi" />
        !            82:                </copy>
        !            83:        </target>
        !            84: 
        !            85: 
        !            86:        <target name="xpi" description="Create Firefox XPI distribution">
        !            87: 
        !            88:                <copy todir="target/extension/chrome">
        !            89:                        <fileset dir="src/xpi/${PLUGIN.NAME}" />
        !            90:                </copy>
        !            91: 
        !            92:                <copy todir="target/extension/chrome">
        !            93:                        <fileset dir="src/xpi/${PLUGIN.NAME}" />
        !            94:                </copy>
        !            95: 
        !            96:                <zip zipfile="target/jar/chrome/${PLUGIN.NAME}.jar" basedir="target/extension/chrome" />
        !            97: 
        !            98:                <copy todir="target/jar/defaults/preferences">
        !            99:                        <fileset dir="src/xpi/install" includes="**/checky*"/>
        !           100:                </copy>
        !           101:                <copy todir="target/jar">
        !           102:                        <fileset dir="src/xpi/install"/>
        !           103:                </copy>
        !           104: 
        !           105:                <zip zipfile="target/xpi/${PLUGIN.NAME}-${PLUGIN.VERSION}.xpi" basedir="target/jar" />
        !           106: 
        !           107:        </target>
        !           108: 
        !           109:        <target name="src" description="Create SRC distribution">
        !           110: 
        !           111:                <copy todir="target/src">
        !           112:                        <fileset dir="src/xpi" />
        !           113:                </copy>
        !           114: 
        !           115:                <zip zipfile="target/zip/${PLUGIN.NAME}-${PLUGIN.VERSION}-src.zip" basedir="target/src" />
        !           116: 
        !           117:                <tar destfile="target/zip/${PLUGIN.NAME}-${PLUGIN.VERSION}-src.tar">
        !           118:                        <tarfileset dir="target/src" preserveLeadingSlashes="false">
        !           119:                                <include name="*/**"/>
        !           120:                        </tarfileset>
        !           121:                </tar>
        !           122: 
        !           123:                <gzip zipfile="target/zip/${PLUGIN.NAME}-${PLUGIN.VERSION}-src.tar.gz" src="target/zip/${PLUGIN.NAME}-${PLUGIN.VERSION}-src.tar"/>
        !           124:                <bzip2 zipfile="target/zip/${PLUGIN.NAME}-${PLUGIN.VERSION}-src.tar.bz2" src="target/zip/${PLUGIN.NAME}-${PLUGIN.VERSION}-src.tar"/>
        !           125:                
        !           126:        </target>
        !           127: 
        !           128:        <target name="update.firefox" description="">
        !           129:                <delete dir="firefox" />
        !           130:                <mkdir dir="firefox" />
        !           131: 
        !           132:                <copy todir="firefox">
        !           133:                        <fileset dir="src_firefox" />
        !           134:                </copy>
        !           135:        </target>
        !           136: 
        !           137:        <target name="update.mozilla" description="">
        !           138:                <delete dir="mozilla" />
        !           139:                <mkdir dir="mozilla" />
        !           140: 
        !           141:                <copy todir="mozilla">
        !           142:                        <fileset dir="src_mozilla" />
        !           143:                </copy>
        !           144:        </target>
        !           145: 
        !           146: </project>

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