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
This commit is contained in:
+16
-2
@@ -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`
|
||||
|
||||
|
||||
@@ -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';`\""\"" "
|
||||
|
||||
Reference in New Issue
Block a user