Browse Source

- only download bullet when its supposed to be built

Normen Hansen 10 years ago
parent
commit
ec183e1eea
1 changed files with 5 additions and 3 deletions
  1. 5 3
      jme3-bullet-native/build.gradle

+ 5 - 3
jme3-bullet-native/build.gradle

@@ -132,9 +132,11 @@ unzipBullet.dependsOn {
 }
 }
 
 
 compileJava.dependsOn {
 compileJava.dependsOn {
-    def bulletUnzipDir = new File(project.projectDir.absolutePath + File.separator + bulletFolder)
-    if (!bulletUnzipDir.isDirectory()) {
-        unzipBullet
+    if(buildNativeProjects=="true"){
+        def bulletUnzipDir = new File(project.projectDir.absolutePath + File.separator + bulletFolder)
+        if (!bulletUnzipDir.isDirectory()) {
+            unzipBullet
+        }
     }
     }
 }
 }