- only download bullet when its supposed to be built

This commit is contained in:
Normen Hansen 2015-01-14 00:11:21 +01:00
parent 00f12cfec7
commit ec183e1eea

View File

@ -132,9 +132,11 @@ unzipBullet.dependsOn {
} }
compileJava.dependsOn { compileJava.dependsOn {
def bulletUnzipDir = new File(project.projectDir.absolutePath + File.separator + bulletFolder) if(buildNativeProjects=="true"){
if (!bulletUnzipDir.isDirectory()) { def bulletUnzipDir = new File(project.projectDir.absolutePath + File.separator + bulletFolder)
unzipBullet if (!bulletUnzipDir.isDirectory()) {
unzipBullet
}
} }
} }