title: Gradle - How can I execute bat file in new cmd window?
body: <p>An part of <code>build.gradle</code>:</p>
  
  <pre><code>task runCraftBukkit(type:Exec) {
      println "Starting CraftBukkit server..."
      commandLine = ['cmd', '/C', 'start', 'D:/Projects/WorkSpaces/WorldCleaner/devserver/start.bat'] // cmd /C start D:/Projects/WorkSpaces/WorldCleaner/devserver/start.bat
      workingDir = file('./devserver/')
  }
  jar.doLast {
      runCraftBukkit.execute()
  }
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>15:13:54: Executing external task 'jar'...
  Starting CraftBukkit server...
  :compileJava UP-TO-DATE
  :processResources UP-TO-DATE
  :classes UP-TO-DATE
  :jar UP-TO-DATE
  
  BUILD SUCCESSFUL
  ...
  </code></pre>
  
  <p>But the command prompt window and <em>does not appear</em>.</p>
  
  <p><em>Question:</em>
  What I do wrong?</p>