2

I would like to know, if is possible to run following command (or something like this) with more than one properties file in --properties argument.

$JBOSS_HOME/bin/jboss-cli.sh --connect --user=admin --password=admin --properties=init.properties --properties=jvm.properties --file=init.cli

or

$JBOSS_HOME/bin/jboss-cli.sh --connect --user=admin --password=admin --properties=init.properties jvm.properties --file=init.cli
Michal Sipek
  • 536
  • 1
  • 6
  • 23

1 Answers1

4

Yes, you can! You were actually right in your first given example.


Here's a non-practical illustration:

hello.properties

hello=Hello from the

world.properties

world='Second' property file

echo.cli

set hello=${hello}
set world=${world}
echo $hello $world

Running:

$ $JBOSS_HOME/bin/jboss-cli.sh --connect --properties=hello.properties --properties=world.properties --file=echo.cli
Hello from the 'Second' property file
hradecek
  • 2,455
  • 2
  • 21
  • 30