通过 JBoss CLI 使用多个 --properties 参数
Using multiple --properties arguments via JBoss CLI
我想知道,是否可以 运行 在 --properties 参数中使用多个属性文件的命令(或类似的东西)。
$JBOSS_HOME/bin/jboss-cli.sh --connect --user=admin --password=admin --properties=init.properties --properties=jvm.properties --file=init.cli
或
$JBOSS_HOME/bin/jboss-cli.sh --connect --user=admin --password=admin --properties=init.properties jvm.properties --file=init.cli
是的,你可以!您在第一个给出的示例中实际上是正确的。
这是一个非实际的例子:
hello.properties
hello=Hello from the
world.properties
world='Second' property file
echo.cli
set hello=${hello}
set world=${world}
echo $hello $world
运行:
$ $JBOSS_HOME/bin/jboss-cli.sh --connect --properties=hello.properties --properties=world.properties --file=echo.cli
Hello from the 'Second' property file
我想知道,是否可以 运行 在 --properties 参数中使用多个属性文件的命令(或类似的东西)。
$JBOSS_HOME/bin/jboss-cli.sh --connect --user=admin --password=admin --properties=init.properties --properties=jvm.properties --file=init.cli
或
$JBOSS_HOME/bin/jboss-cli.sh --connect --user=admin --password=admin --properties=init.properties jvm.properties --file=init.cli
是的,你可以!您在第一个给出的示例中实际上是正确的。
这是一个非实际的例子:
hello.properties
hello=Hello from the
world.properties
world='Second' property file
echo.cli
set hello=${hello}
set world=${world}
echo $hello $world
运行:
$ $JBOSS_HOME/bin/jboss-cli.sh --connect --properties=hello.properties --properties=world.properties --file=echo.cli
Hello from the 'Second' property file