[jboss-jira] [JBoss JIRA] (WFLY-2523) cygwin jboss-cli.sh

Alexey Loubyansky (JIRA) jira-events at lists.jboss.org
Fri Nov 22 04:40:05 EST 2013


    [ https://issues.jboss.org/browse/WFLY-2523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12926001#comment-12926001 ] 

Alexey Loubyansky commented on WFLY-2523:
-----------------------------------------

Thanks for spotting the issue and the patch. Unfortunately, I don't have a windows machine here with cygwin on (nor the guys around who I asked). The patch does look simple and logical though. I was just looking into the script, I also see JAVAC_JAR converted to unix style at the beginning but not back later. But I guess it doesn't create a problem.

And otherwise, how does it run on cygwin? You are running the CLI in the non-interactive mode? In the interactive mode the tab-completion must broken. There is an open issue for that.
                
> cygwin jboss-cli.sh
> -------------------
>
>                 Key: WFLY-2523
>                 URL: https://issues.jboss.org/browse/WFLY-2523
>             Project: WildFly
>          Issue Type: Patch
>      Security Level: Public(Everyone can see) 
>          Components: CLI
>    Affects Versions: 8.0.0.Beta1
>         Environment: windows 7 x64 / cygwin
>            Reporter: Darko Palic
>            Assignee: Alexey Loubyansky
>              Labels: cli, cygwin
>   Original Estimate: 1 hour
>  Remaining Estimate: 1 hour
>
> On cygwin is the implementation of the path variables not correct in the script jboss-cli.sh. Right now under cygwin the paths get mixed in POSIX and Windows style. The module path (-mp param) is in POSIX style and the rest of the command is in windows style. So the startup of the org.jboss.as.cli ends up with
> {code}
> org.jboss.modules.ModuleNotFoundException: org.jboss.as.cli:main
>         at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:240)
>         at org.jboss.modules.Main.main(Main.java:385)
> {code}
> Right now wildfly 8 beta1 has following implementation:
> {code:title=jboss-cli.sh|borderStyle=solid}
> # For Cygwin, switch paths to Windows format before running java
> if $cygwin; then
>     JBOSS_HOME=`cygpath --path --windows "$JBOSS_HOME"`
>     JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
> fi
> {code}
> and it should be:
> {code:title=jboss-cli.sh|borderStyle=solid}
> # For Cygwin, switch paths to Windows format before running java
> if $cygwin; then
>     JBOSS_HOME=`cygpath --path --windows "$JBOSS_HOME"`
>     JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
>     JBOSS_MODULEPATH=`cygpath --path --windows "$JBOSS_MODULEPATH"`
> fi
> {code}
> PS: I searched for similar cli issues in the issue tracker, but couldn't find any issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list