Fixed: Clean the tools directory
(OFBIZ-7795)

In rc scripts, the calls to gradlew should be prefixed with ./

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1778576 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/tools/rc.ofbiz b/tools/rc.ofbiz
index e7b6ecd..e9aa673 100644
--- a/tools/rc.ofbiz
+++ b/tools/rc.ofbiz
@@ -72,7 +72,7 @@
     cd $OFBIZ_HOME
     umask 007
     /bin/rm -f $OFBIZ_LOG
-    gradlew ofbiz >>$OFBIZ_LOG 2>>$OFBIZ_LOG&
+    ./gradlew ofbiz >>$OFBIZ_LOG 2>>$OFBIZ_LOG&
     echo_success
     return 0
 }
@@ -92,10 +92,10 @@
     # All clear
     cd $OFBIZ_HOME
     umask 007
-    gradlew "ofbiz --shutdown" >>$OFBIZ_LOG
+    ./gradlew "ofbiz --shutdown" >>$OFBIZ_LOG
     ofbizprocs
     if [ "$OFBIZ_PROCS" != "" ]; then
-        gradlew terminateOfbiz
+        ./gradlew terminateOfbiz
     fi
     ofbizprocs
     if [ "$OFBIZ_PROCS" != "" ]; then
diff --git a/tools/rc.ofbiz.for.debian b/tools/rc.ofbiz.for.debian
index c5c5636..85f5a2b 100644
--- a/tools/rc.ofbiz.for.debian
+++ b/tools/rc.ofbiz.for.debian
@@ -72,7 +72,7 @@
     cd $OFBIZ_HOME
     umask 007
     /bin/rm -f $OFBIZ_LOG
-    gradlew ofbiz >>$OFBIZ_LOG 2>>$OFBIZ_LOG&
+    ./gradlew ofbiz >>$OFBIZ_LOG 2>>$OFBIZ_LOG&
     echo_success
     return 0
 }
@@ -92,10 +92,10 @@
     # All clear
     cd $OFBIZ_HOME
     umask 007
-    gradlew "ofbiz --shutdown" >>$OFBIZ_LOG
+    ./gradlew "ofbiz --shutdown" >>$OFBIZ_LOG
     ofbizprocs
     if [ "$OFBIZ_PROCS" != "" ]; then
-        gradlew terminateOfbiz
+        ./gradlew terminateOfbiz
     fi
     ofbizprocs
     if [ "$OFBIZ_PROCS" != "" ]; then