You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2022/01/03 17:42:15 UTC

[ofbiz-framework] branch trunk updated: Fixed: Gradle Wrapper is not downloaded with 18.12.03 (OFBIZ-12471)

This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 6e46edf  Fixed: Gradle Wrapper is not downloaded with 18.12.03 (OFBIZ-12471)
6e46edf is described below

commit 6e46edfb37fb816cb23c4685c6c29fd3fca92cc8
Author: Jacques Le Roux <ja...@les7arts.com>
AuthorDate: Mon Jan 3 18:16:12 2022 +0100

    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
---
 README.adoc             | 18 ++++++++++++++++--
 init-gradle-wrapper.bat |  2 +-
 2 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/README.adoc b/README.adoc
index 8f58cd4..c0baf70 100644
--- a/README.adoc
+++ b/README.adoc
@@ -82,8 +82,6 @@ https://adoptopenjdk.net/[JDK download]
 * If on Windows, a Powershell version >= 7.1.3 installed that you can download from the below link. +
 https://github.com/PowerShell/PowerShell[Powershell]
 
-
-
 [[quick-start]]
 // tag::quickstart[]
 == Quick start
@@ -95,6 +93,22 @@ the command line at the OFBiz top level directory (folder).
 === Download the Gradle wrapper:
 
 MS Windows: `init-gradle-wrapper`
+[IMPORTANT]
+====
+If you cross the error 
+
+"Powershell is not recognized as an internal or external command, operable program or batch file"
+
+follows advice there: https://s.apache.org/vdcv8. 
+
+If you want more details: https://s.apache.org/ac7no
+
+====
+[NOTE]
+====
+If you wonder where are stored the PowerShell Executables, here are the answers: https://s.apache.org/w5dye
+====
+
 
 Unix-like OS: `./gradle/init-gradle-wrapper.sh`
 
diff --git a/init-gradle-wrapper.bat b/init-gradle-wrapper.bat
index 188c13a..5e38fa2 100755
--- a/init-gradle-wrapper.bat
+++ b/init-gradle-wrapper.bat
@@ -23,4 +23,4 @@ if exist "%~dp0gradle\wrapper\gradle-wrapper.jar" (
     exit /b
 )
 
-%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -command "  Start-Process pwsh -Verb RunAs \""-Command `\""cd '%cd%'; & 'gradle\init-gradle-wrapper.ps1';`\""\""   "
+pwsh -command "  Start-Process pwsh -Verb RunAs \""-Command `\""cd '%cd%'; & 'gradle\init-gradle-wrapper.ps1';`\""\""   "