Have Narya declare its library dependencies in an includable build file and do

some kind of annoying fiddling to allow its dependencies to come either from
the build directory of its dependee or from lib/.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4423 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2006-10-13 22:17:06 +00:00
parent 4a537cadeb
commit 1dfd474317
3 changed files with 26 additions and 8 deletions
+13 -2
View File
@@ -15,6 +15,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}"/>
@@ -111,12 +116,18 @@
</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="prepare">
<javac srcdir="src/java" destdir="${classes.dir}"
-6
View File
@@ -1,6 +0,0 @@
commons-io.jar
commons-lang.jar
junit-3.7.jar
retroweaver-all-1.2.2.jar
samskivert.jar
velocity-1.5-dev.jar
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<!-- declares the libraries needed to build narya -->
<project name="library-dependencies">
<fileset dir="${projects.root}" id="narya.libs">
<include name="${libs.dir}/commons-io.jar"/>
<include name="${libs.dir}/commons-lang.jar"/>
<include name="${libs.dir}/junit-3.7.jar"/>
<include name="${libs.dir}/retroweaver-all-1.2.2.jar"/>
<include name="${libs.dir}/velocity-1.5-dev.jar"/>
<include name="${libs.dir}/samskivert.jar"/>
<include name="${samskivert.dir}/dist/samskivert.jar"/>
</fileset>
</project>