[jboss-jira] [JBoss JIRA] (AS7-6392) standalone.sh / domain.sh does not support overriding jboss.server.base.dir, log and config dir in CYGWIN

Rostislav Svoboda (JIRA) jira-events at lists.jboss.org
Fri Feb 1 08:03:51 EST 2013


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

Rostislav Svoboda commented on AS7-6392:
----------------------------------------

> remove the "if $linux" and matching "fi"

I don't think it's good idea to remove it because readlink is not standard part of Solaris systems ++ RHEL 4 based readlink doesn't know option '-m' -- see JBPAPP-8372

readlink part is just helper to set JBOSS_BASE_DIR, JBOSS_LOG_DIR, JBOSS_CONFIG_DIR
You can set these properties before executing standalone.sh as described for example in http://fedoraproject.org/wiki/Getting_started_with_JBossAS7_in_Fedora

If you really want to have readlink support for Cygwin I would suggest to include $cygwin check in "if $linux" part ... but not sure how readlink is behaving in Cygwin.

                
> standalone.sh / domain.sh does not support overriding jboss.server.base.dir, log and config dir in CYGWIN
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: AS7-6392
>                 URL: https://issues.jboss.org/browse/AS7-6392
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Scripts
>    Affects Versions: 7.1.3.Final (EAP)
>            Reporter: Tom Fonteyne
>            Assignee: Brian Stansberry
>
> There is a check on linux, so a cygwin system will not execute this block:
> if $linux; then
>     # consolidate the server and command line opts
>     CONSOLIDATED_OPTS="$JAVA_OPTS $SERVER_OPTS"
>     # process the standalone options
>     for var in $CONSOLIDATED_OPTS
>     do
>        case $var in
>          -Djboss.server.base.dir=*)
>               JBOSS_BASE_DIR=`readlink -m ${var#*=}`
> ...

--
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