Updated Branches:
  refs/heads/master dc64b55ed -> 8983cb87e

fix running docco on windows systems


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/1dc291eb
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/1dc291eb
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/1dc291eb

Branch: refs/heads/master
Commit: 1dc291eb013198287c9506c71123eeece17d2d92
Parents: 8a29dbf
Author: Ulrich Staerk <u...@apache.org>
Authored: Wed Mar 20 15:37:38 2013 +0100
Committer: Ulrich Staerk <u...@apache.org>
Committed: Wed Mar 20 15:37:38 2013 +0100

----------------------------------------------------------------------
 build.gradle |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/1dc291eb/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 516c6d5..4c41f39 100755
--- a/build.gradle
+++ b/build.gradle
@@ -316,7 +316,7 @@ task coffeeScriptDocs(type: Exec) {
     })*.files.flatten()
 
     // Needs to be installed via "npm install -g docco"
-    executable "docco"
+    executable isWindows() ? "docco.cmd" : "docco"
     args "--output", outputDir
     args sources
 
@@ -474,3 +474,7 @@ if (canDeploy) {
 boolean isSnapshot() {
     project.version.contains("SNAPSHOT")
 }
+
+boolean isWindows() {
+    System.properties['os.name'].toLowerCase().contains('windows')
+}

Reply via email to