Define our library dependencies in an includable project XML file.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@51 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Michael Bayne
2006-10-13 22:25:42 +00:00
parent 69277175c8
commit a40a420bf6
3 changed files with 46 additions and 22 deletions
+15 -4
View File
@@ -14,6 +14,11 @@
<property name="javadoc.home" value="${deploy.dir}/docs"/>
<property name="classes.dir" value="${deploy.dir}/classes"/>
<!-- import some targets to enumerate library dependencies -->
<property name="projects.root" value="."/>
<property name="libs.dir" value="lib"/>
<import file="libs-incl.xml"/>
<!-- declare our classpath business -->
<path id="classpath">
<pathelement location="${classes.dir}"/>
@@ -62,17 +67,23 @@
<copy todir="${classes.dir}/rsrc">
<fileset dir="rsrc" includes="**/*"/>
</copy>
<copy todir="${deploy.dir}/lib">
<fileset dir="lib" includes="**/*.jar"/>
<copy todir="${deploy.dir}/lib" flatten="true">
<fileset refid="${app.name}.libs"/>
</copy>
</target>
<!-- cleans out the installed application -->
<!-- cleans out the intermediate build files -->
<target name="clean">
<delete dir="${deploy.dir}"/>
<delete dir="${deploy.dir}/classes"/>
<delete dir="${deploy.dir}/docs"/>
<ant dir="tests" target="clean"/>
</target>
<!-- wipes the entire build directory clean -->
<target name="distclean" depends="clean">
<delete dir="${deploy.dir}"/>
</target>
<!-- build the java class files -->
<target name="compile" depends="check-available,prepare">
<javac srcdir="src/java" destdir="${classes.dir}"