mirror of
https://github.com/corda/corda.git
synced 2025-01-30 16:14:39 +00:00
bump gradle plugin version to 0.10.3 (#482)
This commit is contained in:
parent
846d9caa09
commit
e6bb2eedc0
@ -4,11 +4,12 @@ import java.awt.GraphicsEnvironment
|
|||||||
import java.io.File
|
import java.io.File
|
||||||
import java.nio.file.Files
|
import java.nio.file.Files
|
||||||
import java.nio.file.Paths
|
import java.nio.file.Paths
|
||||||
import java.util.Locale
|
import java.util.*
|
||||||
|
|
||||||
private val nodeJarName = "corda.jar"
|
private val nodeJarName = "corda.jar"
|
||||||
private val webJarName = "corda-webserver.jar"
|
private val webJarName = "corda-webserver.jar"
|
||||||
private val nodeConfName = "node.conf"
|
private val nodeConfName = "node.conf"
|
||||||
|
private val HEADLESS_FLAG = "--headless"
|
||||||
|
|
||||||
private val os: OS by lazy {
|
private val os: OS by lazy {
|
||||||
val osName = System.getProperty("os.name", "generic").toLowerCase(Locale.ENGLISH)
|
val osName = System.getProperty("os.name", "generic").toLowerCase(Locale.ENGLISH)
|
||||||
@ -21,10 +22,10 @@ private enum class OS { MACOS, WINDOWS, LINUX }
|
|||||||
|
|
||||||
fun main(args: Array<String>) {
|
fun main(args: Array<String>) {
|
||||||
val startedProcesses = mutableListOf<Process>()
|
val startedProcesses = mutableListOf<Process>()
|
||||||
val headless = (GraphicsEnvironment.isHeadless() || (!args.isEmpty() && (args[0] == "--headless")))
|
val headless = (GraphicsEnvironment.isHeadless() || (!args.isEmpty() && (args[0] == HEADLESS_FLAG)))
|
||||||
val runJar = getJarRunner(headless)
|
val runJar = getJarRunner(headless)
|
||||||
val workingDir = Paths.get(System.getProperty("user.dir")).toFile()
|
val workingDir = Paths.get(System.getProperty("user.dir")).toFile()
|
||||||
val javaArgs = listOf<String>() // TODO: Add args passthrough
|
val javaArgs = args.filter { it != HEADLESS_FLAG }
|
||||||
println("Starting nodes in $workingDir")
|
println("Starting nodes in $workingDir")
|
||||||
|
|
||||||
workingDir.list().map { File(workingDir, it) }.forEach {
|
workingDir.list().map { File(workingDir, it) }.forEach {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user