Added necessary jockeying to cause ant not to freak out if JAVA_LIBS is

not set.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2057 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-12-12 07:30:18 +00:00
parent 18c7b2cf6f
commit 8d5ba037f1
+15 -5
View File
@@ -18,14 +18,24 @@
<!-- we want to access the environment -->
<property environment="env"/>
<property name="java.libraries" value="${env.JAVA_LIBS}"/>
<!-- declare our classpath -->
<path id="classpath">
<!-- declare our classpath business -->
<path id="base.classpath">
<pathelement location="${classes.dir}"/>
<fileset dir="lib" includes="**/*.jar"/>
<fileset dir="${java.libraries}" includes="**/*.jar"/>
</path>
<path id="classpath">
<path refid="base.classpath"/>
</path>
<!-- include JAVA_LIBS jars in our classpath if it exists -->
<target name="check-java-libs" if="env.JAVA_LIBS">
<!-- overwrite the classpath with one that contains JAVA_LIBS jars -->
<path id="classpath">
<path refid="base.classpath"/>
<fileset dir="${env.JAVA_LIBS}" includes="**/*.jar"/>
</path>
</target>
<!-- generates .java files for all .dobj files -->
<target name="gendobj">
@@ -61,7 +71,7 @@
</target>
<!-- prepares the application directories -->
<target name="prepare" depends="gendobj">
<target name="prepare" depends="check-java-libs,gendobj">
<mkdir dir="${deploy.dir}"/>
<mkdir dir="${classes.dir}"/>
<mkdir dir="${classes.dir}/rsrc"/>