mirror of
https://github.com/corda/corda.git
synced 2025-05-20 17:32:52 +00:00
fix build issue on windows
This commit is contained in:
parent
d33f31614c
commit
b2bc411321
16
node/dist/build.gradle
vendored
16
node/dist/build.gradle
vendored
@ -46,16 +46,12 @@ task copyLauncherLibs(type: Copy, dependsOn: [project(':launcher').jar]) {
|
||||
into "$buildDir/tmp/launcher-lib"
|
||||
}
|
||||
|
||||
// The launcher building is done as it depends on application-specific settings which
|
||||
// cannot be overridden later
|
||||
task buildLauncher(type: Exec, dependsOn: [copyLauncherLibs]) {
|
||||
description 'Build Launcher executable'
|
||||
|
||||
def isLinux = System.properties['os.name'].toLowerCase().contains('linux')
|
||||
def isMac = System.properties['os.name'].toLowerCase().contains('mac')
|
||||
|
||||
if (!isLinux && !isMac)
|
||||
throw new GradleException("Preparing distribution package is currently only supported on Linux/Mac")
|
||||
if (isLinux || isMac) {
|
||||
println("Detected *nix system, enabling distribution creation")
|
||||
task buildLauncher(type: Exec, dependsOn: [copyLauncherLibs]) {
|
||||
description 'Build Launcher executable'
|
||||
|
||||
def relativeDir
|
||||
if (isLinux)
|
||||
@ -156,4 +152,6 @@ task buildNode(type: Copy, dependsOn: [buildLauncher, project(':docs').tasks['ma
|
||||
println("${outputDir}")
|
||||
}
|
||||
}
|
||||
|
||||
}else{
|
||||
println("Not running on *nix, disabling distribution generation")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user