klenwell information services : Pastebin20120630

Wiki source for Pastebin20120630


Show raw source

====PlayN Upgrade Changeset====
%%
--- a/playn/mygame/java/pom.xml Thu Jun 28 22:43:08 2012 -0700
+++ b/playn/mygame/java/pom.xml Sat Jun 30 14:50:49 2012 -0700
@@ -24,6 +24,25 @@
<version>${playn.version}</version>
</dependency>
</dependencies>
+
+ <build>
+ <plugins>
+ <!-- unpack LWJGL when testing -->
+ <plugin>
+ <groupId>com.googlecode.mavennatives</groupId>
+ <artifactId>maven-nativedependencies-plugin</artifactId>
+ <version>0.0.6</version>
+ <executions>
+ <execution>
+ <id>unpacknatives</id>
+ <phase>test-compile</phase>
+ <goals><goal>copy</goal></goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+

<profiles>
<!-- allows testing of Java backend via: mvn test -Ptest-java -->
@@ -32,18 +51,29 @@
<build>
<plugins>
<plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>1.1.1</version>
+
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.6</version>
+
<executions>
<execution>
<phase>test</phase>
+
+ <configuration>
+
+ <target>
+ <java fork="true" classname="playn.showcase.java.ShowcaseJava"
+ classpathref="maven.test.classpath">
+ <sysproperty key="java.library.path" value="target/natives"/>
+ </java>
+ </target>
+
+ </configuration>
+
<goals>
- <goal>java</goal>
+ <goal>run</goal>
</goals>
- <configuration>
- <mainClass>mygame.playn.java.mygamePlaynJava</mainClass>
- </configuration>
+
</execution>
</executions>
</plugin>
diff -r 9663e0dd897e playn/mygame/pom.xml
--- a/playn/mygame/pom.xml Thu Jun 28 22:43:08 2012 -0700
+++ b/playn/mygame/pom.xml Sat Jun 30 14:50:49 2012 -0700
@@ -4,7 +4,7 @@
<parent>
<groupId>com.googlecode.playn</groupId>
<artifactId>playn-project</artifactId>
- <version>1.2</version>
+ <version>1.3.1</version>
</parent>

<groupId>com.mygame</groupId>
@@ -14,13 +14,31 @@
<name>mygamePlayn Metaproject</name>

<properties>
- <playn.version>1.2</playn.version>
+ <playn.version>1.3.1</playn.version>
</properties>

- <modules>
- <module>core</module>
- <module>java</module>
- <module>html</module>
- <module>android</module>
- </modules>
+ <profiles>
+ <profile>
+ <id>java</id>
+ <activation><activeByDefault>true</activeByDefault></activation>
+ <modules><module>java</module></modules>
+ </profile>
+ <profile>
+ <id>android</id>
+ <modules><module>android</module></modules>
+ </profile>
+ <profile>
+ <id>ios</id>
+ <modules><module>ios</module></modules>
+ </profile>
+ <profile>
+ <id>html</id>
+ <modules><module>html</module></modules>
+ </profile>
+ <profile>
+ <id>flash</id>
+ <modules><module>flash</module></modules>
+ </profile>
+ </profiles>
+
</project>
%%