1 #############################################################################
2 #                                                                          ##
3 #    WildFly CLI Script for interacting with the server                    ##
4 #                                                                          ##
5 #############################################################################
6 $PROGNAME=$MyInvocation.MyCommand.Name
7 $scripts = (Get-ChildItem $MyInvocation.MyCommand.Path).Directory.FullName;
8 . $scripts'\common.ps1'
9 
10 $SERVER_OPTS = Process-Script-Parameters -Params $ARGS
11 
12 $PROG_ARGS = Get-Java-Arguments -entryModule "org.jboss.as.cli" -serverOpts $SERVER_OPTS -logFileProperties "$JBOSS_HOME/bin/jboss-cli-logging.properties"
13 
14 & $JAVA $PROG_ARGS
15 
16 Env-Clean-Up