From 602017cd475aaee57b3f01b0a25b4c4ba522fff3 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Mon, 24 Jun 2019 12:36:18 +0000 Subject: [PATCH] Reverted: it was not supposed to be committed, "wrong button" while creating a patch git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1862001 13f79535-47bb-0310-9956-ffa450edef68 --- gradlew.bat | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gradlew.bat b/gradlew.bat index 0834a3223b..8f504fad03 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -77,10 +77,14 @@ set CMD_LINE_ARGS=%* :execute @rem Setup the command line + set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar -@rem Overwrite the Gradle Wrapper files in all cases (it's only 55kb). This way we are sure to always use the last version -Powershell.exe -executionpolicy remotesigned -File %APP_HOME%\gradle\init-gradle-wrapper.ps1 +@rem check if Gradle is installed +if exist "%CLASSPATH%" goto GradleOK + +md %APP_HOME%\gradle\wrapper\ +Powershell.exe -executionpolicy remotesigned -File %APP_HOME%\init-gradle-wrapper.ps1 :GradleOK @rem Execute Gradle