svn commit: r1862001 - /ofbiz/ofbiz-framework/trunk/gradlew.bat

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1862001 - /ofbiz/ofbiz-framework/trunk/gradlew.bat

jleroux@apache.org
Author: jleroux
Date: Mon Jun 24 12:36:18 2019
New Revision: 1862001

URL: http://svn.apache.org/viewvc?rev=1862001&view=rev
Log:
Reverted: it was not supposed to be committed, "wrong button" while creating
a patch

Modified:
    ofbiz/ofbiz-framework/trunk/gradlew.bat

Modified: ofbiz/ofbiz-framework/trunk/gradlew.bat
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/gradlew.bat?rev=1862001&r1=1862000&r2=1862001&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/gradlew.bat (original)
+++ ofbiz/ofbiz-framework/trunk/gradlew.bat Mon Jun 24 12:36:18 2019
@@ -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