Jogamp
mvn antcompat profile.
authorPatrick Woodworth <patrick@woodworth.org>
Sat, 8 Dec 2012 05:04:54 +0000 (21:04 -0800)
committerPatrick Woodworth <patrick@woodworth.org>
Sat, 8 Dec 2012 05:04:54 +0000 (21:04 -0800)
Jake2.sh
pom.xml

index aab71ff..4fa1dcb 100755 (executable)
--- a/Jake2.sh
+++ b/Jake2.sh
@@ -3,7 +3,11 @@
 cd `dirname $0`
 
 # for jogl and joal
-CP=lib/jogamp/gluegen-rt.jar:lib/jogamp/joal.jar:lib/jogamp/jogl-all.jar:dist/lib/jake2.jar
+if [ -f "target/jake2.jar" ] ; then
+  CP=target/jake2.jar
+else
+  CP=lib/jogamp/gluegen-rt.jar:lib/jogamp/joal.jar:lib/jogamp/jogl-all.jar:dist/lib/jake2.jar
+fi
 
 #breaks VM's like avian
 X_ARGS="-Xmx100M"
diff --git a/pom.xml b/pom.xml
index 4010f5a..741eb76 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -12,6 +12,9 @@
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+    <jake.build.outputDirectory>${project.build.directory}/classes</jake.build.outputDirectory>
+    <jake.dist.lib.directory>${project.build.directory}</jake.dist.lib.directory>
+    <jake.dist.dep.prefix/>
     <jake.test.skip>true</jake.test.skip>
     <jake.javac.source>1.6</jake.javac.source>
     <jake.javac.target>${jake.javac.source}</jake.javac.target>
@@ -64,6 +67,7 @@
   </dependencies>
 
   <build>
+    <outputDirectory>${jake.build.outputDirectory}</outputDirectory>
     <sourceDirectory>src</sourceDirectory>
     <resources>
       <resource>
         <artifactId>maven-jar-plugin</artifactId>
         <version>2.4</version>
         <configuration>
+          <outputDirectory>${jake.dist.lib.directory}</outputDirectory>
           <archive>
             <manifest>
               <mainClass>jake2.Jake2</mainClass>
               <addClasspath>true</addClasspath>
+              <classpathPrefix>${jake.dist.dep.prefix}</classpathPrefix>
             </manifest>
           </archive>
         </configuration>
             </goals>
             <configuration>
               <includeScope>runtime</includeScope>
-              <outputDirectory>${project.build.directory}</outputDirectory>
+              <outputDirectory>${jake.dist.lib.directory}/${jake.dist.dep.prefix}</outputDirectory>
               <overWriteReleases>false</overWriteReleases>
               <overWriteSnapshots>false</overWriteSnapshots>
               <overWriteIfNewer>true</overWriteIfNewer>
 
   <profiles>
     <profile>
+      <id>antcompat</id>
+      <activation>
+        <property>
+          <name>jake.antcompat</name>
+          <value>true</value>
+        </property>
+      </activation>
+      <properties>
+        <jake.build.outputDirectory>build</jake.build.outputDirectory>
+        <jake.dist.lib.directory>dist/lib</jake.dist.lib.directory>
+        <jake.dist.dep.prefix>jogamp/</jake.dist.dep.prefix>
+      </properties>
+    </profile>
+    <profile>
       <id>linux</id>
       <activation>
         <os>
http://JogAmp.org git info: FAQ, tutorial and man pages.