Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  An Ant build file to help run the demos  (Read 1079 times)
0 Members and 1 Guest are viewing this topic.
Scott_Y._Hong
Guest
« on: 2003-07-30 22:15:21 »

<?xml version="1.0" encoding="UTF-8"?>
<!--
Note:

This is not an ant build file to build JOGL project!!!

This is simply an ant build file to execute the
pre-compiled JOGL demos.

Enjoy!
-->
<project name="build" default="info" basedir=".">

   <path id="classpath">
       <fileset dir="." includes="*.jar"/>
       <pathelement path="${build.dir}"/>
   </path>

   <target name="info">
           <echo>
   Ussage : ant target
   1 = Gears
   2 = HWShadowmapsSimple
   3 = InfiniteShadowVolumes
   4 = ProceduralTexturePhysics
   5 = VertexProgRefract
   6 = VertexProgWarp
   7 = VertexArrayRange
   8 = TestContextSharing
   all = Run all demos one by one

   Example: to run example #1 (Gears) demo.
       ant 1

   Note:
       1. Put all the required files at the same location.
           jogl.jar
           jogl-demos.jar
           jogl-demos-data.jar
           jogl-demos-util.jar
           native library(s) depending on your platform
           (if you are using linux, you probably need to copy
            libjogl.so to JAVA_HOME/jre/lib/i386 to be able to
            run the demos!!!)
       2. Copy this file to the same location as these files
          listed above.
       3. execute the ant target

   </echo>
   </target>

   <target name="all">
       <antcall target="Gears"/>
       <antcall target="HWShadowmapsSimple"/>
       <antcall target="InfiniteShadowVolumes"/>
       <antcall target="ProceduralTexturePhysics"/>
       <antcall target="VertexProgRefract"/>
       <antcall target="VertexProgWarp"/>
       <antcall target="VertexArrayRange"/>
       <!-- Cannot exit progrogram? Run it as the last one.-->
       <antcall target="TestContextSharing"/>
   </target>

   <target name="1">
       <antcall target="Gears"/>
   </target>

   <target name="2">
       <antcall target="HWShadowmapsSimple"/>
   </target>

   <target name="3">
       <antcall target="InfiniteShadowVolumes"/>
   </target>

   <target name="4">
       <antcall target="ProceduralTexturePhysics"/>
   </target>

   <target name="5">
       <antcall target="VertexProgRefract"/>
   </target>

   <target name="6">
       <antcall target="VertexProgWarp"/>
   </target>

   <target name="7">
       <antcall target="VertexArrayRange"/>
   </target>

   <target name="8">
       <antcall target="TestContextSharing"/>
   </target>

   <target name="Gears">
       <java classname="demos.gears.Gears"
           failonerror="false"
           fork="yes"
           taskname="Gear">
           <classpath refid="classpath" />
       </java>
   </target>

   <target name="HWShadowmapsSimple">
       <java classname="demos.hwShadowmapsSimple.HWShadowmapsSimple"
           failonerror="false"
           fork="yes"
           taskname="HWShadowmapsSimple">
           <classpath refid="classpath" />
       </java>
   </target>

   <target name="InfiniteShadowVolumes">
       <java classname="demos.infiniteShadowVolumes.InfiniteShadowVolumes"
           failonerror="false"
           fork="yes"
           taskname="InfiniteShadowVolumes">
           <classpath refid="classpath" />
       </java>
   </target>

   <target name="ProceduralTexturePhysics">
       <java classname="demos.proceduralTexturePhysics.ProceduralTexturePhysics"
           failonerror="false"
           fork="yes"
           taskname="ProceduralTexturePhysics">
           <classpath refid="classpath" />
       </java>
   </target>

   <target name="TestContextSharing">
       <java classname="demos.testContextSharing.TestContextSharing"
           failonerror="false"
           fork="yes"
           taskname="TestContextSharing">
           <classpath refid="classpath" />
       </java>
   </target>


   <target name="VertexArrayRange">
       <java classname="demos.vertexArrayRange.VertexArrayRange"
           failonerror="false"
           fork="yes"
           taskname="VertexArrayRange">
           <classpath refid="classpath" />
       </java>
   </target>

   <target name="VertexProgRefract">
       <java classname="demos.vertexProgRefract.VertexProgRefract"
           failonerror="false"
           fork="yes"
           taskname="VertexProgRefract">
           <classpath refid="classpath" />
       </java>
   </target>

   <target name="VertexProgWarp">
       <java classname="demos.vertexProgWarp.VertexProgWarp"
           failonerror="false"
           fork="yes"
           taskname="TestContextSharing">
           <classpath refid="classpath" />
       </java>
   </target>

</project>
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.104 seconds with 20 queries.