I can reproduce the behaviour L is seeing in a docker container - see steps
below.

I don't have a solution yet though, sorry.



Repro Steps:

docker run -t -i openjdk:11 /bin/bash

root@b1d80d7d85ab:/# javac -version
javac 11.0.6
root@b1d80d7d85ab:/# echo $JAVA_HOME
/usr/local/openjdk-11root@b1d80d7d85ab:/# cd /usr/local
root@b1d80d7d85ab:/usr/local# wget
http://apache.mirror.anlx.net/ofbiz/apache-ofbiz-16.11.06.zip
--2020-01-23 12:25:08--
http://apache.mirror.anlx.net/ofbiz/apache-ofbiz-16.11.06.zip
Resolving apache.mirror.anlx.net (apache.mirror.anlx.net)... 81.91.108.244,
81.91.108.244
Connecting to apache.mirror.anlx.net
(apache.mirror.anlx.net)|81.91.108.244|:80...
connected.
HTTP request sent, awaiting response... 200 OK
Length: 31289456 (30M) [application/zip]
Saving to: ‘apache-ofbiz-16.11.06.zip’

apache-ofbiz-16.11.06.zip
100%[===================================================================================================================>]
29.84M 3.19MB/s in 9.4s

2020-01-23 12:25:17 (3.16 MB/s) - ‘apache-ofbiz-16.11.06.zip’ saved
[31289456/31289456]

root@b1d80d7d85ab:/usr/local# unzip -q apache-ofbiz-16.11.06.zip
root@b1d80d7d85ab:/usr/local# mv apache-ofbiz-16.11.06 ofbiz
root@b1d80d7d85ab:/usr/local# cd ofbiz/
root@b1d80d7d85ab:/usr/local/ofbiz# ls -l
total 180
-rw-r--r-- 1 root staff 7136 Jul 11 2016 APACHE2_HEADER
-rw-r--r-- 1 root staff 13794 Oct 5 2016 LICENSE
-rw-r--r-- 1 root staff 166 Jun 19 2019 NOTICE
-rw-r--r-- 1 root staff 1747 Sep 23 2016 OPTIONAL_LIBRARIES
-rw-r--r-- 1 root staff 20560 Aug 23 08:12 README.md
-rw-r--r-- 1 root staff 26396 Aug 23 08:12 README.md.html
drwxr-sr-x 14 root staff 4096 Aug 27 09:30 applications
-rw-r--r-- 1 root staff 42437 Aug 9 13:02 build.gradle
-rw-r--r-- 1 root staff 1929 Sep 22 2016 common.gradle
drwxr-sr-x 19 root staff 4096 Aug 27 09:30 framework
drwxr-sr-x 3 root staff 4096 Aug 27 09:31 gradle
drwxr-sr-x 2 root staff 4096 Aug 27 09:30 hot-deploy
-rwxr-xr-x 1 root staff 1180 Aug 18 15:06 init-gradle-wrapper.bat
drwxr-sr-x 2 root staff 4096 Aug 27 09:30 lib
-rw-r--r-- 1 root staff 7 Aug 27 09:31 revision.txt
drwxr-sr-x 10 root staff 4096 Aug 27 09:30 runtime
-rw-r--r-- 1 root staff 1150 Jul 30 2016 settings.gradle
drwxr-sr-x 20 root staff 4096 Aug 27 09:31 specialpurpose
drwxr-sr-x 7 root staff 4096 Aug 27 09:30 themes
drwxr-sr-x 5 root staff 4096 Aug 27 09:30 tools


root@b1d80d7d85ab:/usr/local/ofbiz# ./gradle/init-gradle-wrapper.sh
=== Prepare operation ===
/usr/local/ofbiz/gradle/wrapper/gradle-wrapper.jar not found, we download it
=== Download gradle-wrapper.jar ===
=== Download gradle-wrapper.properties ===
=== Download script wrapper ===
=== Control downloaded files ===
gradle/wrapper/gradle-wrapper.jar: OK
gradle/wrapper/gradle-wrapper.properties: OK
gradlew: OK
root@b1d80d7d85ab:/usr/local/ofbiz# ls -l
total 188
-rw-r--r-- 1 root staff 7136 Jul 11 2016 APACHE2_HEADER
-rw-r--r-- 1 root staff 13794 Oct 5 2016 LICENSE
-rw-r--r-- 1 root staff 166 Jun 19 2019 NOTICE
-rw-r--r-- 1 root staff 1747 Sep 23 2016 OPTIONAL_LIBRARIES
-rw-r--r-- 1 root staff 20560 Aug 23 08:12 README.md
-rw-r--r-- 1 root staff 26396 Aug 23 08:12 README.md.html
drwxr-sr-x 14 root staff 4096 Aug 27 09:30 applications
-rw-r--r-- 1 root staff 42437 Aug 9 13:02 build.gradle
-rw-r--r-- 1 root staff 1929 Sep 22 2016 common.gradle
drwxr-sr-x 19 root staff 4096 Aug 27 09:30 framework
drwxr-sr-x 3 root staff 4096 Aug 27 09:31 gradle
-rwxr--r-- 1 root staff 5875 Jan 23 12:26 gradlew
drwxr-sr-x 2 root staff 4096 Aug 27 09:30 hot-deploy
-rwxr-xr-x 1 root staff 1180 Aug 18 15:06 init-gradle-wrapper.bat
drwxr-sr-x 2 root staff 4096 Aug 27 09:30 lib
-rw-r--r-- 1 root staff 7 Aug 27 09:31 revision.txt
drwxr-sr-x 10 root staff 4096 Aug 27 09:30 runtime
-rw-r--r-- 1 root staff 1150 Jul 30 2016 settings.gradle
drwxr-sr-x 20 root staff 4096 Aug 27 09:31 specialpurpose
drwxr-sr-x 7 root staff 4096 Aug 27 09:30 themes
drwxr-sr-x 5 root staff 4096 Aug 27 09:30 tools


Windows Terminal
root@b1d80d7d85ab:/usr/local/ofbiz# ./gradlew cleanAll loadDefault
Downloading https://services.gradle.org/distributions/gradle-2.13-bin.zip
.................................................................................................................................................................................................................
.................................................................................................................................................................................................................
.................................................................................................................................................................................................................
.................................................................................................................................................................................................................
.................................................................................................................................................................................................................
.................................................................................................................................................................................................................
.................................................................................................................................................................................................................
.................................................................................................................................................................................................................
.................................................................................................................................................................................................................
.................................................................................................................................................................................................................
.................................................................................................................................................................................................................
.......................................................
Unzipping
/root/.gradle/wrapper/dists/gradle-2.13-bin/4xsgxlfjcxvrea7akf941nvc7/gradle-2.13-bin.zip
to /root/.gradle/wrapper/dists/gradle-2.13-bin/4xsgxlfjcxvrea7akf941nvc7
Set executable permissions for:
/root/.gradle/wrapper/dists/gradle-2.13-bin/4xsgxlfjcxvrea7akf941nvc7/gradle-2.13/bin/gradle


Attempts to run gradlew don't appear to do anything:
root@b1d80d7d85ab:/usr/local/ofbiz# ./gradlew build
root@b1d80d7d85ab:/usr/local/ofbiz# ./gradlew help
root@b1d80d7d85ab:/usr/local/ofbiz# ./gradlew tasks
root@b1d80d7d85ab:/usr/local/ofbiz#


As far as I can tell the gradlew script is in place. Attempts to redirect
stdout to other files still resulted in 0-bytes of output, therefore I
assume there is nothing odd going on with the terminal.





On Thu, 23 Jan 2020 at 11:38, L <[email protected]> wrote:

> ./gradlew loadAll doesn't do anything and supplies no output.  It just
> returns to the CLI instantly:
>
> [root@localhost ofbiz]# ./gradlew loadAll
> [root@localhost ofbiz]#
>
> On 1/22/20 9:08 AM, Parminder S. Lehal wrote:
> > The problem lies with the download files. Some of the zip files *even
> > the latest 16.11 zip) does not have gradlew file included in them. It
> > is pathetic that the final package file served  from the mirrors is
> > incomplete(May be.... someone will pay some attention to this decline
> > in quality). I also found this after wasting some time.  Easier
> > solution may be to use svn for downloading whatever version you are
> > looking for.
> > On Wed, 2020-01-22 at 10:32 +0100, Gil Portenseigne wrote:
> >> On Wed, Jan 22, 2020 at 10:30:14AM +0100, Gil Portenseigne wrote:
> >>> Hello,
> >>>
> >> Typo :And you should be able to : $ ./gradlew loadAll
>
>
>

-- 
Daniel Watford

Reply via email to