Skip to content

Commit 45e879d

Browse files
ygreepvlugter
authored andcommitted
Enable connectInput by default for the applications running from Sbt with this plugin enabled when fork is enabled.
Otherwise it will not read user input from the standard input (console).
1 parent 21bc32a commit 45e879d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/scala/com/lightbend/sbt/javaagent/JavaAgent.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ object JavaAgent extends AutoPlugin {
6262
libraryDependencies ++= javaAgents.value.map(_.module),
6363
resolvedJavaAgents := resolveAgents.value,
6464
fork in run := enableFork(fork in run, _.scope.run).value,
65+
connectInput in run := enableFork(fork in run, _.scope.run).value,
6566
fork in Test := enableFork(fork in Test, _.scope.test).value,
6667
javaOptions in run ++= agentOptions(_.agent.scope.run).value,
6768
javaOptions in Test ++= agentOptions(_.agent.scope.test).value,

0 commit comments

Comments
 (0)