- allow packing bullet binaries from build folder that have previously been built on other platforms
This commit is contained in:
parent
69f8e58d84
commit
104254f6a6
@ -152,7 +152,15 @@ compileJava.dependsOn {
|
|||||||
binaries.withType(SharedLibraryBinary) { binary ->
|
binaries.withType(SharedLibraryBinary) { binary ->
|
||||||
if (!buildable) {
|
if (!buildable) {
|
||||||
//TODO: obtain elsewhere if not available
|
//TODO: obtain elsewhere if not available
|
||||||
|
if(!binary.tasks.outputFile.get(0).exists()){
|
||||||
return
|
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
|
// Get builder of this binary
|
||||||
def builderTask = binary.tasks
|
def builderTask = binary.tasks
|
||||||
|
Loading…
x
Reference in New Issue
Block a user