In previous versions of JBoss EAP 6, it was found that the `add-user.sh` script would fail when run in Cygwin environments.
The cause was identified as a poorly formatted line of code in the script.
This issue has been resolved in this release, however the script still carries an unresolved issue when run in Cygwin environments. Refer to ticket 1069252 in the Known Issues section of this document for more information.
add-user.sh fails under cygwin for bad syntax. It's a trivial one line change like WFLY-130 (https://github.com/wildfly/wildfly/pull/5737):
> diff --git a/build/src/main/resources/bin/add-user.sh b/build/src/main/resources/bin
> index 38cc026..074ed0c 100755
> --- a/build/src/main/resources/bin/add-user.sh
> +++ b/build/src/main/resources/bin/add-user.sh
> @@ -11,7 +11,7 @@ DIRNAME=`dirname "$0"`
> # OS specific support (must be 'true' or 'false').
> if [ `uname|grep -i CYGWIN` ]; then
> - cygwin = true;
> + cygwin=true;
> # For Cygwin, ensure paths are in UNIX format before anything is touched
Cloning for EAP 6.3.0.
We should try to fix also the second problem as add-user is still not working with cygwin.
Using add-user.sh with cygwin:
./add-user.sh: line 14: cygwin: command not found
Error: Unable to access jarfile /cygdrive/w/pkremens/jboss-eap-6.2/jboss-modules.jar
cygpath: can't convert empty path
Exception in thread "main" java.lang.IllegalStateException: JBAS015232: No java.io.Console available to interact with user.
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
The original reported problem has been committed, the second one needs to be look at by dev, please file a separate BZ for that.
Closing this one as script was fixed. Opened a new issue for add-user as such. See BZ1069252.
Verified on EAP 6.3.0.DR0