Need to exclude JME bits when we don't have the right jar files.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3616 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
+16
-1
@@ -21,6 +21,20 @@
|
|||||||
<fileset dir="../lib" includes="**/*.jar"/>
|
<fileset dir="../lib" includes="**/*.jar"/>
|
||||||
</path>
|
</path>
|
||||||
|
|
||||||
|
<!-- checks the availability of certain libraries -->
|
||||||
|
<target name="check-available">
|
||||||
|
<available property="jme.present"
|
||||||
|
classname="com.jme.scene.Node" classpathref="classpath"/>
|
||||||
|
<available property="jme-bui.present"
|
||||||
|
classname="com.jme.bui.BWindow" classpathref="classpath"/>
|
||||||
|
<condition property="build.jme">
|
||||||
|
<and>
|
||||||
|
<isset property="jme.present"/>
|
||||||
|
<isset property="jme-bui.present"/>
|
||||||
|
</and>
|
||||||
|
</condition>
|
||||||
|
</target>
|
||||||
|
|
||||||
<!-- generates additional methods for distributed object classes -->
|
<!-- generates additional methods for distributed object classes -->
|
||||||
<target name="gendobj" depends="prepare">
|
<target name="gendobj" depends="prepare">
|
||||||
<taskdef name="dobj"
|
<taskdef name="dobj"
|
||||||
@@ -83,10 +97,11 @@
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- build the java class files -->
|
<!-- build the java class files -->
|
||||||
<target name="compile" depends="prepare">
|
<target name="compile" depends="check-available,prepare">
|
||||||
<javac srcdir="${src.dir}" destdir="${classes.dir}"
|
<javac srcdir="${src.dir}" destdir="${classes.dir}"
|
||||||
debug="on" optimize="off" deprecation="off">
|
debug="on" optimize="off" deprecation="off">
|
||||||
<classpath refid="classpath"/>
|
<classpath refid="classpath"/>
|
||||||
|
<exclude name="com/threerings/jme/**" unless="build.jme"/>
|
||||||
</javac>
|
</javac>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user