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'). > cygwin=false; > if [ `uname|grep -i CYGWIN` ]; then > - cygwin = true; > + cygwin=true; > fi > > # 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: EAP 6.2.0.GA ./add-user.sh ./add-user.sh: line 14: cygwin: command not found Error: Unable to access jarfile /cygdrive/w/pkremens/jboss-eap-6.2/jboss-modules.jar EAP 6.3.0.DR0 ./add-user.sh cygpath: can't convert empty path Exception in thread "main" java.lang.IllegalStateException: JBAS015232: No java.io.Console available to interact with user. at org.jboss.as.domain.management.security.adduser.AddUser.<init>(AddUser.java:74) at org.jboss.as.domain.management.security.adduser.AddUser.main(AddUser.java:215) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jboss.modules.Module.run(Module.java:292) at org.jboss.modules.Main.main(Main.java:455)
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