[英]How can I script an update to a servicemix system bundle using karaf's client.bat?
How can I script out a update to a servicemix system bundle using karaf's client.bat?我如何使用 karaf 的 client.bat 编写对 servicemix 系统包的更新脚本? When I try to run
./client.bat "update 111" -p <password>
through powershell I get a java.lang.NullPointerException.当我尝试通过 powershell 运行
./client.bat "update 111" -p <password>
时,我得到一个 java.lang.NullPointerException。 I believe it is because updating this bundle requires the user to type yes on the server when it asks "You are about to access system bundle 111. Do you wish to continue (yes/no):" Any way I can get around this?我相信这是因为更新此捆绑包需要用户在服务器询问“您将要访问系统捆绑包 111。您是否希望继续(是/否):”时在服务器上键入是,我有什么办法可以解决这个问题吗?
Specify user and password first then specify command you want to run.首先指定用户和密码,然后指定要运行的命令。
Example:例子:
# Default user and password
./client.bat -u karaf -p karaf -- "update 111"
Don't recall Apache Karaf asking for confirmation when it comes to bundle:update
.不记得 Apache Karaf 在谈到
bundle:update
时要求确认。 If service mix has such thing you might want to check bundle:update --help
to see if there's option to skip it.如果服务组合有这样的东西,你可能想检查
bundle:update --help
看看是否有跳过它的选项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.