Subversion Repositories general

Rev

Rev 960 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<project name="backpath" default="lib" basedir=".">

        <property name="build.compiler" value="jikes" />

        <property name="src"            location="src" />
        <property name="classes"        location="classes" />
        <property name="lib"            location="lib" />
        <property name="output"         location="output" />
        <property name="classpath"      value="" />

        <path id="classpath.general">
                <pathelement path="${classpath}" />
        </path>

        <path id="classpath.compile">
                <path refid="classpath.general" />
                <pathelement location="${classes}" />
                <fileset dir="${lib}">
                        <include name="**/*.jar" />
                </fileset>
        </path>

        <target name="compile">
                <mkdir dir="${classes}" />

                <javac
                        srcdir="${src}"
                        destdir="${classes}"
                        classpathref="classpath.compile"
                        debug="on"
                        nowarn="on"
                />
        </target>

        <target name="lib" depends="compile">
                <mkdir dir="${output}" />
                <jar
                        destfile="${output}/backpath.jar"
                        basedir="${classes}"
                />      
        </target>

        <target name="clean">
                <delete dir="${classes}"/>
        </target>

        <target name="all" depends="clean,lib" />

</project>