Permalink
Browse files

Added flag to disable process spawning on windows

  • Loading branch information...
1 parent 1f895df commit c34dcd8ff75e460735745da0e122b3b51935324b @talios committed Apr 24, 2012
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/main/java/com/theoryinpractise/clojure/AbstractClojureCompilerMojo.java
View
10 src/main/java/com/theoryinpractise/clojure/AbstractClojureCompilerMojo.java
@@ -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");

0 comments on commit c34dcd8

Please sign in to comment.