Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
View
@@ -220,6 +220,14 @@
*/
private String vmargs;
+
+ /**
+ * Spawn a new console window for interactive clojure sessions on Windows
+ *
+ * @parameter default-value-true
+ */
+ private boolean spawnInteractiveConsoleOnWindows;
+
/**
* Escapes the given file path so that it's safe for inclusion in a
* Clojure string literal.
@@ -412,7 +420,7 @@ protected void callClojureWith(
getLog().debug("Clojure classpath: " + cp);
CommandLine cl = null;
- if (ExecutionMode.INTERACTIVE == executionMode && SystemUtils.IS_OS_WINDOWS) {
+ if (ExecutionMode.INTERACTIVE == executionMode && SystemUtils.IS_OS_WINDOWS && spawnInteractiveConsoleOnWindows) {
cl = new CommandLine("cmd");
cl.addArgument("/c");
cl.addArgument("start");
Please sign in to comment.
Something went wrong with that request. Please try again.