Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (481)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (548)
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 1378 times)
0 Members and 1 Guest are viewing this topic.
Scott_Y._Hong
Guest
« Posted 2003-07-31 02: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.

 

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

The first screenshot will be displayed as a thumbnail.

atombrot (26 views)
2014-08-19 09:29:53

Tekkerue (24 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (14 views)
2014-08-16 06:20:21

Tekkerue (22 views)
2014-08-16 06:12:11

Rayexar (60 views)
2014-08-11 02:49:23

BurntPizza (38 views)
2014-08-09 21:09:32

BurntPizza (30 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38

BurntPizza (67 views)
2014-08-03 02:57:17
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
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!