Repository: incubator-batchee
Updated Branches:
  refs/heads/master 340ebc22b -> fbfc42433


BATCHEE-106 fixing batchee script for cygwin


Project: http://git-wip-us.apache.org/repos/asf/incubator-batchee/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-batchee/commit/db7931db
Tree: http://git-wip-us.apache.org/repos/asf/incubator-batchee/tree/db7931db
Diff: http://git-wip-us.apache.org/repos/asf/incubator-batchee/diff/db7931db

Branch: refs/heads/master
Commit: db7931db74e6bbf3ed56b70175f2ab1c302d179c
Parents: 340ebc2
Author: Romain manni-Bucau <[email protected]>
Authored: Wed Aug 3 15:19:45 2016 +0200
Committer: Romain manni-Bucau <[email protected]>
Committed: Wed Aug 3 15:19:45 2016 +0200

----------------------------------------------------------------------
 tools/cli/src/main/resources/batchee | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-batchee/blob/db7931db/tools/cli/src/main/resources/batchee
----------------------------------------------------------------------
diff --git a/tools/cli/src/main/resources/batchee 
b/tools/cli/src/main/resources/batchee
index 1dd49ac..1ad8182 100644
--- a/tools/cli/src/main/resources/batchee
+++ b/tools/cli/src/main/resources/batchee
@@ -45,6 +45,11 @@ if [ -z "$_RUNJAVA" ]; then
   _RUNJAVA="$JAVA_HOME"/bin/java
 fi
 
+if $cygwin; then
+  _RUNJAVA=`cygpath --absolute --unix "$_RUNJAVA"`
+  echo $_RUNJAVA
+fi
+
 if [ -z "$BATCHEE_HOME" -o ! -d "$BATCHEE_HOME" ] ; then
   # find batchee
   if [ -d /opt/batchee ] ; then
@@ -102,4 +107,4 @@ if [ -f "$logging" ] ; then
     BATCHEE_OPTS="$BATCHEE_OPTS -Djava.util.logging.config.file=$logging"
 fi
 
-$_RUNJAVA $BATCHEE_OPTS -cp "$bin" org.apache.batchee.cli.bootstrap.Bootstrap 
$@
+"$_RUNJAVA" $BATCHEE_OPTS -cp "$bin" 
org.apache.batchee.cli.bootstrap.Bootstrap $@

Reply via email to