From 10c4d46b9720d7ab6c86f02128a902bad91974db Mon Sep 17 00:00:00 2001 From: cburlinchon <31621751+cburlinchon@users.noreply.github.com> Date: Mon, 11 Sep 2017 15:23:03 +0100 Subject: [PATCH] Add delay to macos script startup (#1462) --- .../src/noderunner/kotlin/net/corda/plugins/NodeRunner.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/gradle-plugins/cordformation/src/noderunner/kotlin/net/corda/plugins/NodeRunner.kt b/gradle-plugins/cordformation/src/noderunner/kotlin/net/corda/plugins/NodeRunner.kt index 7ec608802a..83462c2deb 100644 --- a/gradle-plugins/cordformation/src/noderunner/kotlin/net/corda/plugins/NodeRunner.kt +++ b/gradle-plugins/cordformation/src/noderunner/kotlin/net/corda/plugins/NodeRunner.kt @@ -101,6 +101,7 @@ private class TerminalWindowJavaCommand(jarName: String, dir: File, debugPort: I OS.MACOS -> { listOf("osascript", "-e", """tell app "Terminal" activate + delay 0.5 tell app "System Events" to tell process "Terminal" to keystroke "t" using command down delay 0.5 do script "bash -c 'cd $dir; ${command.joinToString(" ")} && exit'" in selected tab of the front window