ソースを参照

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