Permalink
Browse files

Generate the assets symlink rather than commit it to git.

Symlinks committed to git don't work on Windows (last I checked), so this
should be more likely to work for more people.
  • Loading branch information...
samskivert committed Jan 7, 2013
1 parent 6bef714 commit 2bbceca81bb9c7f8ab9fde719a70546d5366530a
Showing with 46 additions and 2 deletions.
  1. +2 −0 .gitignore
  2. +0 −1 tests/android/assets
  3. +22 −0 tests/android/pom.xml
  4. +0 −1 tests/ios/assets
  5. +22 −0 tests/ios/pom.xml
View
@@ -27,3 +27,5 @@ target
/tests/html/war/manualtestsgame
/tests/html/gwt-unitCache
/tests/flash/war/WEB-INF/classes
+/tests/android/assets
+/tests/ios/assets
View
View
@@ -42,6 +42,28 @@
<build>
<plugins>
+ <plugin>
+ <groupId>com.pyx4j</groupId>
+ <artifactId>maven-junction-plugin</artifactId>
+ <version>1.0.3</version>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>link</goal>
+ </goals>
+ </execution>
+ </executions>
+ <!-- generate a symlink to our assets directory in the proper location -->
+ <configuration>
+ <links>
+ <link>
+ <src>${basedir}/../assets/src/main/resources/assets</src>
+ <dst>${basedir}/assets</dst>
+ </link>
+ </links>
+ </configuration>
+ </plugin>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
View
View
@@ -31,6 +31,28 @@
<!-- omit the version from the dll name so it doesn't change with releases -->
<finalName>${project.artifactId}</finalName>
<plugins>
+ <plugin>
+ <groupId>com.pyx4j</groupId>
+ <artifactId>maven-junction-plugin</artifactId>
+ <version>1.0.3</version>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>link</goal>
+ </goals>
+ </execution>
+ </executions>
+ <!-- generate a symlink to our assets directory in the proper location -->
+ <configuration>
+ <links>
+ <link>
+ <src>${basedir}/../assets/src/main/resources/assets</src>
+ <dst>${basedir}/assets</dst>
+ </link>
+ </links>
+ </configuration>
+ </plugin>
<plugin>
<groupId>com.samskivert</groupId>
<artifactId>ikvm-maven-plugin</artifactId>

0 comments on commit 2bbceca

Please sign in to comment.