瀏覽代碼

- 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
+        }
     }
 }