Browse Source

Fixes #103 - Fix Regression from 5acbb89 and 0bb947e where parsing each file line by line has destroyed binary files

MeFisto94 8 years ago
parent
commit
b2e7bacb42
1 changed files with 10 additions and 1 deletions
  1. 10 1
      build.gradle

+ 10 - 1
build.gradle

@@ -577,9 +577,18 @@ task cleanSdk() <<{
     file("JME3TestsTemplateAndroid/src/jme3test/").deleteDir()
 }
 
-task patchPlatformIndependent(type: Copy) {
+task extractPlatformIndependent(type: Copy) {
     from zipTree('dist/jmonkeyplatform.zip')
     into "dist/temp/"
+    
+    exclude("jmonkeyplatform/etc/jmonkeyplatform.conf")
+}
+
+task patchPlatformIndependent(type: Copy, dependsOn: extractPlatformIndependent) {
+    from zipTree('dist/jmonkeyplatform.zip')
+    into "dist/temp/"
+    
+    include("jmonkeyplatform/etc/jmonkeyplatform.conf")
 
     filter { String line ->
         line.startsWith('jdkhome=') ? '#jdkhome="/path/to/jdk"': line