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:
@@ -18,14 +18,24 @@
|
|||||||
|
|
||||||
<!-- we want to access the environment -->
|
<!-- we want to access the environment -->
|
||||||
<property environment="env"/>
|
<property environment="env"/>
|
||||||
<property name="java.libraries" value="${env.JAVA_LIBS}"/>
|
|
||||||
|
|
||||||
<!-- declare our classpath -->
|
<!-- declare our classpath business -->
|
||||||
<path id="classpath">
|
<path id="base.classpath">
|
||||||
<pathelement location="${classes.dir}"/>
|
<pathelement location="${classes.dir}"/>
|
||||||
<fileset dir="lib" includes="**/*.jar"/>
|
<fileset dir="lib" includes="**/*.jar"/>
|
||||||
<fileset dir="${java.libraries}" includes="**/*.jar"/>
|
|
||||||
</path>
|
</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 -->
|
<!-- generates .java files for all .dobj files -->
|
||||||
<target name="gendobj">
|
<target name="gendobj">
|
||||||
@@ -61,7 +71,7 @@
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- prepares the application directories -->
|
<!-- prepares the application directories -->
|
||||||
<target name="prepare" depends="gendobj">
|
<target name="prepare" depends="check-java-libs,gendobj">
|
||||||
<mkdir dir="${deploy.dir}"/>
|
<mkdir dir="${deploy.dir}"/>
|
||||||
<mkdir dir="${classes.dir}"/>
|
<mkdir dir="${classes.dir}"/>
|
||||||
<mkdir dir="${classes.dir}/rsrc"/>
|
<mkdir dir="${classes.dir}/rsrc"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user