Permalink
Browse files

use .\gradlew for Windows instead of ./gradlew

Signed-off-by: alexlehm <alexlehm@gmail.com>
  • Loading branch information...
1 parent c8d5a33 commit de96eb570af23079262e058716ba79aa9cb2014c @alexlehm alexlehm committed Dec 4, 2016
Showing with 7 additions and 2 deletions.
  1. +7 −2 gradle-redeploy/build.gradle
@@ -26,7 +26,12 @@ def mainVerticleName = 'io.vertx.example.HelloWorldVerticle'
def watchForChange = 'src/**/*.java'
// Vert.x will call this task on changes
-def doOnChange = './gradlew classes'
+def doOnChange
+if (System.getProperty("os.name").toLowerCase().contains("windows")) {
+ doOnChange = '.\\gradlew classes'
+} else {
+ doOnChange = './gradlew classes'
+}
run {
args = ['run', mainVerticleName, "--redeploy=$watchForChange", "--launcher-class=$mainClassName", "--on-redeploy=$doOnChange"]
@@ -46,4 +51,4 @@ shadowJar {
task wrapper(type: Wrapper) {
gradleVersion = '2.10'
-}
+}

0 comments on commit de96eb5

Please sign in to comment.