An Ant build file to help run the demos

<?xml version="1.0" encoding="UTF-8"?>
<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>