thirdparty/jsdoctoolkit/java/build_1.4.xml
author Sverre Rabbelier <srabbelier@gmail.com>
Mon, 02 Nov 2009 16:23:58 +0100
changeset 3073 6e100e194680
parent 3041 c8f47f0b6697
permissions -rw-r--r--
Convert gen_app_yaml.py to optparse This allows for example the -f flag to be specified as the second argument. Also add a '-i|--interactive' flag which asks for the application name interactively.

<project default="clean-build"><!-- use this build script if you are stuck with ant version 1.4 -->
   <target name="clean">
        <delete dir="build"/>
    </target>

    <target name="compile">
        <mkdir dir="build/classes"/>
        <javac 
         srcdir="src" destdir="build/classes"
         classpath="./classes/js.jar"
        />
    </target>

    <target name="jar">
        <mkdir dir="build/jar"/>
        <jar jarfile="build/jar/jsrun.jar" basedir="build/classes">
            <manifest>
               <attribute name="Main-Class" value="JsRun"/>
               <attribute name="Class-Path" value="./java/classes/js.jar"/>
            </manifest>
        </jar>
    </target>
    
    <target name="debugjar">
        <mkdir dir="build/jar"/>
        <jar jarfile="build/jar/jsdebug.jar" basedir="build/classes">
            <manifest>
               <attribute name="Main-Class" value="JsDebugRun"/>
               <attribute name="Class-Path" value="./java/classes/js.jar"/>
            </manifest>
        </jar>
    </target>

    <target name="clean-build" depends="clean,compile,jar"/>
    <target name="clean-debug" depends="clean,compile,debugjar"/>
</project>