diff options
author | Patrick Woodworth <[email protected]> | 2012-12-07 21:04:54 -0800 |
---|---|---|
committer | Patrick Woodworth <[email protected]> | 2012-12-07 21:04:54 -0800 |
commit | 74c9f6971d808ba5eb27540930f62666a7f8ea78 (patch) | |
tree | 9476a49e3f20fea2212baa31ba2fa2472853e84b | |
parent | 7f53d76259360b07e2edff5eec6da48d95bd6858 (diff) |
mvn antcompat profile.
-rwxr-xr-x | Jake2.sh | 6 | ||||
-rw-r--r-- | pom.xml | 22 |
2 files changed, 26 insertions, 2 deletions
@@ -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" @@ -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> @@ -102,10 +106,12 @@ <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> @@ -139,7 +145,7 @@ </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> @@ -160,6 +166,20 @@ <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> |