Skip to content

Commit

Permalink
[MRELEASE-1114] Restore interactive mode for forked process
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed May 18, 2023
1 parent e3bf326 commit 2ffacc8
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,16 @@ public void executeGoals(
.setBaseDirectory(workingDirectory)
// fix for MRELEASE-1105
// .addShellEnvironment( "MAVEN_DEBUG_OPTS", "" )
.setBatchMode(true)
.setBatchMode(!interactive)
.setJavaHome(releaseEnvironment.getJavaHome())
.setOutputHandler(getLogger()::info)
.setErrorHandler(getLogger()::error);

// for interactive mode we need some inputs stream
if (interactive) {
req.setInputStream(System.in);
}

if (pomFileName != null) {
req.setPomFileName(pomFileName);
}
Expand Down

0 comments on commit 2ffacc8

Please sign in to comment.