Java-Gaming.org Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (555)
Games in Android Showcase (148)
games submitted by our members
Games in WIP (601)
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 1433 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.

 
BurntPizza (35 views)
2015-02-27 06:09:35

BurntPizza (25 views)
2015-02-27 05:56:17

Riven (19 views)
2015-02-27 02:34:15

Riven (24 views)
2015-02-27 01:47:26

Riven (26 views)
2015-02-27 01:46:04

BurntPizza (20 views)
2015-02-27 00:52:04

BurntPizza (23 views)
2015-02-27 00:50:29

Riven (41 views)
2015-02-26 23:38:45

Riven (19 views)
2015-02-26 23:37:24

BurntPizza (36 views)
2015-02-26 21:13:04
How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21

Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27
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!