Explorar el Código

- only download bullet when its supposed to be built

Normen Hansen hace 10 años
padre
commit
ec183e1eea
Se han modificado 1 ficheros con 5 adiciones y 3 borrados
  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
+        }
     }
 }