diff --git a/jme3-bullet-native/build.gradle b/jme3-bullet-native/build.gradle index 93914ba16..b6304f0ff 100644 --- a/jme3-bullet-native/build.gradle +++ b/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 + } } }