[jboss-jira] [JBoss JIRA] (AS7-1947) Startup options jboss.domain.base.dir / jboss.domain.config.dir are ignored

Rostislav Svoboda (JIRA) jira-events at lists.jboss.org
Fri Jan 27 07:16:49 EST 2012


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

Rostislav Svoboda commented on AS7-1947:
----------------------------------------

@The log property won't most likely not be reflected, since the startup script does not understand java properties. AS7-1947 seems to be related to that. (from AS7-1850)

boot.log for host-controller and process-controller are created under domain/log because domain.sh/.bat scripts can't reflect java properties.

I think there are two ways:
* parse arguments within .bat/.bash scripts
{code}
## Properties from -D parameter
for var in "$@"
do
    echo "$var"
    if [[ $var == -Djboss.domain.log.dir=* ]]; then 
       echo "OK -- `echo $var | sed 's/-Djboss.domain.log.dir=//'`"
    fi
done
{code}
{code}
## Properties from file
. property_file
echo $prop  ## but problems with jboss.domain.log.dir :( unusable

{code}
{code}
## Properties from file
for var in `cat test.properties`
do
    echo "$var"
    if [[ $var == jboss.domain.log.dir=* ]]; then 
       echo "OK -- `echo $var | sed 's/jboss.domain.log.dir=//'`"
    fi
done
{code}
Something similar should be developed for Windows but I'm not sure if it's possible at all.
I checked commands for 'cmd' [1] and I couldn't find something similar to sed. Command findstr can be used as grep substitute.
* introduce LOG_PATH + CONFIGURATION_PATH properties as described in AS7-2494

I vote for LOG_PATH + CONFIGURATION_PATH properties

[1] http://ss64.com/nt/
                
> Startup options jboss.domain.base.dir / jboss.domain.config.dir are ignored
> ---------------------------------------------------------------------------
>
>                 Key: AS7-1947
>                 URL: https://issues.jboss.org/browse/AS7-1947
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Scripts
>    Affects Versions: 7.0.1.Final
>            Reporter: Michael Voegele
>            Assignee: Emanuel Muckenhuber
>             Fix For: 7.1.0.Final
>
>
> Starting JBoss using
> jboss_install/bin/domain.bat 
>   -Djboss.home.dir=C:\eplatform\jboss\AS-7.0-Test\jboss_install
>   -Djboss.domain.base.dir=C:\eplatform\jboss\AS-7.0-Test\jboss_appl_1\domain
>   -Djboss.domain.config.dir=C:\eplatform\jboss\AS-7.0-Test\jboss_appl_1\domain\configuration
> leads to
> Unable to read the logging configuration from 'file:C:\eplatform\jboss\AS-7.0-Test\jboss_install/domain/configuration/logging.properties'
> Options jboss.domain.base.dir / jboss.domain.config.dir are ignored.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list