Jogamp
configurable jnlp codebases.
authorMichael Bien <mbien@fh-landshut.de>
Thu, 3 Feb 2011 19:40:46 +0000 (20:40 +0100)
committerMichael Bien <mbien@fh-landshut.de>
Thu, 3 Feb 2011 19:40:46 +0000 (20:40 +0100)
build.xml
nbproject/project.properties

index 939f22b..4c43ad7 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -9,12 +9,13 @@
       </not>
     </condition>
 
+    <import file="nbproject/build-impl.xml"/>
+    
+    <property file="nbproject/project.properties" />
+
     <!-- Pull in GlueGen cpptasks build file -->
-    <property name="gluegen.root"  value="../gluegen" />
     <import file="${gluegen.root}/make/gluegen-cpptasks.xml" />
 
-    <import file="nbproject/build-impl.xml"/>
-
     <target name="-pre-jar">
         <tstamp>
             <format property="version.timestamp" pattern="yyyyMMdd"/>
@@ -42,8 +43,9 @@
 
     <target name="create-all-jnlps">
 
-        <property name="jocl.codepase"       value="http://jogamp.org/deployment/webstart-next/jocl"/>
-        <property name="jocl-demos.codepase" value="http://jogamp.org/deployment/webstart-next/jocl-demos"/>
+        <property name="jocl.codepase"       value="JOCL_CODEBASE_TAG"/>
+        <property name="jogl.codepase"       value="JOGL_CODEBASE_TAG"/>
+        <property name="jocl-demos.codepase" value="DEMO_CODEBASE_TAG"/>
         
         <antcall target="create-jnlp" inheritrefs="true">
             <param name="jnlp.name"         value="glclinterop"/>
@@ -86,7 +88,7 @@
 
     <target name="create-jnlp">
         <condition  property="jogl.extension"
-                    value='&lt;extension name="newt-all-awt" href="JOGL_CODEBASE_TAG/newt-all-awt.jnlp"/&gt;'
+                    value='&lt;extension name="newt-all-awt" href="${jogl.codepase}/newt-all-awt.jnlp"/&gt;'
                     else="">
             <istrue value="${jnlp.jogl}"/>
         </condition>
@@ -95,6 +97,8 @@
                 <replacestring from="DEMO_TITLE" to="${jnlp.title}"/>
                 <replacestring from="NAME_TAG" to="${jnlp.name}"/>
                 <replacestring from="CLASS_TAG" to="${jnlp.mainclass}"/>
+                <replacestring from="DEMO_CODEBASE_TAG" to="${jocl-demos.codepase}"/>
+                <replacestring from="JOCL_CODEBASE_TAG" to="${jocl.codepase}"/>
                 <replacestring from="EXTENSION" to="${jogl.extension}"/>
             </filterchain>
         </copy>
index 7f391a0..401fc04 100644 (file)
@@ -99,3 +99,8 @@ test.src.dir=test
 
 #the jocl-demos version you are building
 jocl_demos_base_version=0.9
+
+#jnlp codebases
+#jocl.codepase=http://jogamp.org/deployment/webstart-next
+#jogl.codepase=http://jogamp.org/deployment/webstart-next
+#jocl-demos.codepase=http://jogamp.org/deployment/webstart-next
\ No newline at end of file
http://JogAmp.org git info: FAQ, tutorial and man pages.