Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (416)
games submitted by our members
Games in WIP (307)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  An Ant build file to help run the demos  (Read 1238 times)
0 Members and 1 Guest are viewing this topic.
Scott_Y._Hong
Guest
« Posted 2003-07-31 04: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]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
mrbenebob (16 views)
2013-06-19 14:55:23

BrassApparatus (25 views)
2013-06-19 08:52:37

NegativeZero (28 views)
2013-06-19 03:31:52

NegativeZero (31 views)
2013-06-19 03:24:09

Jesse_Attard (34 views)
2013-06-18 22:03:02

HeroesGraveDev (71 views)
2013-06-15 23:35:23

Vermeer (70 views)
2013-06-14 20:08:06

davedes (72 views)
2013-06-14 16:03:55

alaslipknot (64 views)
2013-06-13 07:56:31

Roquen (88 views)
2013-06-12 04:12:32
Smoothing Algorithm Question
by UprightPath
2013-05-28 02:58:26

Smoothing Algorithm Question
by UprightPath
2013-05-28 02:57:33

Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!