aboutsummaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorjada <jada@28c7f869-5b4e-e670-f602-82bfaf57f300>2006-02-11 00:49:27 +0000
committerjada <jada@28c7f869-5b4e-e670-f602-82bfaf57f300>2006-02-11 00:49:27 +0000
commitbdf61f929eb2c5ff73be8020719790048972ae7c (patch)
treeb62105b58943fe05d38e199453fd9c8a30edd728 /build.xml
parente78d6ea8b3dfcd57a54c0e5f40301d700ee8dc4d (diff)
1) Fixed an error in CLASSPATH setup for running example program in ant.
2) Copy resources to build in preparation for jarring
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml39
1 files changed, 33 insertions, 6 deletions
diff --git a/build.xml b/build.xml
index b6e6173..a78f370 100644
--- a/build.xml
+++ b/build.xml
@@ -74,6 +74,19 @@
<!-- Create the dist directory -->
<mkdir dir="${dist}"/>
+ <!-- Copy resources to build in preparation for jarring -->
+ <copy todir="${build}/classes/org/jdesktop/j3d/examples/resources">
+ <fileset dir="${src}/resources"/>
+ </copy>
+ <!-- Cg shader -->
+ <copy todir="${build}/classes/org/jdesktop/j3d/examples/resources/cg_shader">
+ <fileset dir="${src}/classes/org/jdesktop/j3d/examples/cg_shader" includes ="*.cg"/>
+ </copy>
+ <!-- GLSL shader -->
+ <copy todir="${build}/classes/org/jdesktop/j3d/examples/resources/glsl_shader">
+ <fileset dir="${src}/classes/org/jdesktop/j3d/examples/glsl_shader" includes ="*.vert, *.frag"/>
+ </copy>
+
<!-- Create the jar file -->
<jar jarfile="${output.jar}"
manifest="manifest.mf"
@@ -107,23 +120,37 @@
-->
<target name="run.HelloUniverse" depends="init-run">
- <java classpath="${run.classpath}"
- fork="true"
+ <java fork="true"
classname="org.jdesktop.j3d.examples.hello_universe.HelloUniverse">
+ <classpath refid="run.classpath"/>
</java>
</target>
+ <target name="run.BackgroudGeometry" depends="init-run">
+ <java fork="true"
+ classname="org.jdesktop.j3d.examples.background.BackgroundGeometry">
+ <classpath refid="run.classpath"/>
+ </java>
+ </target>
+
<target name="run.QueryProperties" depends="init-run">
- <java classpath="${run.classpath}"
- fork="true"
+ <java fork="true"
classname="org.jdesktop.j3d.examples.package_info.QueryProperties">
+ <classpath refid="run.classpath"/>
</java>
</target>
<target name="run.SphereMotion" depends="init-run">
- <java classpath="${run.classpath}"
- fork="true"
+ <java fork="true"
classname="org.jdesktop.j3d.examples.sphere_motion.SphereMotion">
+ <classpath refid="run.classpath"/>
+ </java>
+ </target>
+
+ <target name="run.ObjLoad" depends="init-run">
+ <java fork="true"
+ classname="org.jdesktop.j3d.examples.objload.ObjLoad">
+ <classpath refid="run.classpath"/>
</java>
</target>