1 ############################################################################# 2 # ## 3 # AppClient Startup Script ## 4 # ## 5 ############################################################################# 6 7 $scripts = (Get-ChildItem $MyInvocation.MyCommand.Path).Directory.FullName; 8 . $scripts'\common.ps1' 9 $SERVER_OPTS = Process-Script-Parameters -Params $ARGS 10 11 # Read an optional running configuration file 12 $APPCLIENT_CONF_FILE = $scripts + '.\appclient.conf.ps1' 13 $APPCLIENT_CONF_FILE = Get-Env RUN_CONF $APPCLIENT_CONF_FILE 14 . $APPCLIENT_CONF_FILE 15 16 if ($global:SECMGR) { 17 $MODULE_OPTS +="-secmgr"; 18 } 19 20 $dir = Get-Env JBOSS_BASE_DIR $JBOSS_HOME\appclient 21 Set-Global-Variables -baseDir $dir 22 23 $PROG_ARGS = Get-Java-Arguments -entryModule "org.jboss.as.appclient" -serverOpts $SERVER_OPTS -logFileProperties "$JBOSS_HOME\appclient\configuration\logging.properties" -logFile "$JBOSS_HOME\appclient\log\appclient.log" 24 25 Start-WildFly-Process -programArguments $PROG_ARGS