如何在buildr中分解war文件
我是构建者的新手,所以我可能会遗漏一些明显的东西。
根据此页面,它应该相当简单:
- 下载explode.rb
在构建文件的顶部添加以下内容:
需要“explode.rb”
在您的 Web 应用程序上定义爆炸任务:
package(:war).explode :target =>; “jetty/webapps/myApplication”
运行任务
buildr myApp:explode
但是,我无法让它工作。如果我只是执行该文章中的步骤,我会收到以下错误:
RuntimeError : Don't know how to build task 'myApp:explode'
我尝试了各种组合,但没有任何效果。
I'm new to buildr, so I might be missing something obvious.
According to this page, it should be fairly simple:
- Download explode.rb
At the top of your buildfile, add the following:
require 'explode.rb'
Define explode task on your web application:
package(:war).explode :target => "jetty/webapps/myApplication"
Run the task
buildr myApp:explode
However, but I can't get it to work. If I just go through the steps in that article, I get the following error:
RuntimeError : Don't know how to build task 'myApp:explode'
I tried all sorts of combinations, but nothing worked.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,这些说明 100% 正确。我的问题是
myApp
是一个子项目,运行任务时我需要完全限定的名称,即:我很困惑,因为只运行
buildr myApp
工作正常。Turns out the instructions were 100% correct. My problem was that
myApp
was a sub-project, and I needed the fully qualified name when running the task, i.e.:I was confused because just running
buildr myApp
worked fine.