Skip to content
This repository
Browse code

Added flag to disable process spawning on windows

  • Loading branch information...
commit c34dcd8ff75e460735745da0e122b3b51935324b 1 parent 1f895df
Mark Derricutt authored
10 src/main/java/com/theoryinpractise/clojure/AbstractClojureCompilerMojo.java
@@ -220,6 +220,14 @@
220 220 */
221 221 private String vmargs;
222 222
  223 +
  224 + /**
  225 + * Spawn a new console window for interactive clojure sessions on Windows
  226 + *
  227 + * @parameter default-value-true
  228 + */
  229 + private boolean spawnInteractiveConsoleOnWindows;
  230 +
223 231 /**
224 232 * Escapes the given file path so that it's safe for inclusion in a
225 233 * Clojure string literal.
@@ -412,7 +420,7 @@ protected void callClojureWith(
412 420 getLog().debug("Clojure classpath: " + cp);
413 421 CommandLine cl = null;
414 422
415   - if (ExecutionMode.INTERACTIVE == executionMode && SystemUtils.IS_OS_WINDOWS) {
  423 + if (ExecutionMode.INTERACTIVE == executionMode && SystemUtils.IS_OS_WINDOWS && spawnInteractiveConsoleOnWindows) {
416 424 cl = new CommandLine("cmd");
417 425 cl.addArgument("/c");
418 426 cl.addArgument("start");

0 comments on commit c34dcd8

Please sign in to comment.
Something went wrong with that request. Please try again.