Преглед изворни кода

- only download bullet when its supposed to be built

Normen Hansen пре 10 година
родитељ
комит
ec183e1eea
1 измењених фајлова са 5 додато и 3 уклоњено
  1. 5 3
      jme3-bullet-native/build.gradle

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

@@ -132,9 +132,11 @@ unzipBullet.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
+        }
     }
 }