- allow packing bullet binaries from build folder that have previously been built on other platforms

experimental
Normen Hansen 10 years ago
parent 69f8e58d84
commit 104254f6a6
  1. 10
      jme3-bullet-native/build.gradle

@ -152,7 +152,15 @@ compileJava.dependsOn {
binaries.withType(SharedLibraryBinary) { binary ->
if (!buildable) {
//TODO: obtain elsewhere if not available
return
if(!binary.tasks.outputFile.get(0).exists()){
return
}else{
// Add output to jar file if the binary exists in the build folder already,
// e.g. when the build of jme3-bullet-native has been run on a virtual box
// and the project hasn't been cleaned yet.
jar.into("native/${targetPlatform.operatingSystem.name}/${targetPlatform.architecture.name}") { from binary.tasks.outputFile }
return
}
}
// Get builder of this binary
def builderTask = binary.tasks

Loading…
Cancel
Save