Commit Graph
5 Commits
Author SHA1 Message Date
Jacques Le Roux 6e46edfb37 Fixed: Gradle Wrapper is not downloaded with 18.12.03 (OFBIZ-12471)
After another issue reported today by Steven Payne on user ML about the
execution policy of PowerShell7, rather than using the pwsh path I document in
README.adoc solutions for cases we crossed so far.

Moreover I noticed today that my previous fix was not enough. "pwsh" was used
twice in the cmd line!

Thanks: David S Hunter and Steven Payne for reports on user ML
2022-01-03 18:41:35 +01:00
Jacques Le Roux ff99172d34 Fixed: Gradle Wrapper is not downloaded with 18.12.03 (OFBIZ-12471)
I guess for a reason David misses the path to WindowsPowerShell as an
environment variable.

Follows advice here:
https://stackoverflow.com/questions/29778121/powershell-is-not-recognized-as-an-internal-or-external-command-operable-progr

Thanks: David S Hunter for report
2021-12-26 14:00:04 +01:00
Jacques Le Roux 1bde2a0204 Fixed: Replace Bintray by a new place to upload the Gradle Wrapper (OFBIZ-12192)
Updates init-gradle-wrapper.bat
  to exit if Gradle wrapper already exists
  to start PowerShell (>=7) in admin mode, this to be able to use Set-ItemProperty

Updates init-gradle-wrapper.ps1
 to removes exit if Gradle wrapper already exists
 to create the gradle/wrapper dir if necessary
 to handle the ConstrainedLanguage mode if necessary

Conflicts handled by hand
  gradle/init-gradle-wrapper.ps1

Conflicts handled by hand
  gradle/init-gradle-wrapper.ps1
2021-03-14 12:37:46 +01:00
Jacques Le Roux cc6ac64346 Improved: fixes the executionpolicy for last update of Windows 10
Thanks: Georg Potthast for report on user ML
2020-09-26 09:55:27 +02:00
Jacques Le Roux 34fb04e41c Implemented: Remove the Gradle wrapper from our release packages and add a step
to our build notes
(OFBIZ-10145)

Adds the Windows init-gradle-wrapper scripts (both .bat et .ps1) in all 
concerned branch (trunk, R18, R17)

These are very simple because I believe (almost?) nobody is using a Windows 
server to deploy OFBiz in production. So they will be only used in development 
environment. In case deployment in production is needed they supply a base to 
work on...

The init-gradle-wrapper.ps1 scripts use only HTTP and not HTTPS because it's 
very difficult to handle all the issues related with different versions of 
Powershell and .net in different versions of Windows. Better to let that to
deployment in case it's really needed...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1864927 13f79535-47bb-0310-9956-ffa450edef68
2019-08-11 12:56:38 +00:00