2011-08-23 106 views
0

我是buildr的新手,所以我可能会漏掉一些明显的东西。如何在buildr中爆炸war文件

this page,它应该是相当简单:

  1. Download explode.rb
  2. At the top of your buildfile, add the following:

    require 'explode.rb'

  3. Define explode task on your web application:

    package(:war).explode :target => "jetty/webapps/myApplication"

  4. Run the task

    buildr myApp:explode

不过,但我不能得到它的工作。如果我只是去通过文章中的步骤,我得到以下错误:

RuntimeError : Don't know how to build task 'myApp:explode' 

我试过各种组合,但毫无效果。

回答

1

原来的说明是100%正确的。我的问题是,myApp是一个子项目,和运行任务,即:

buildr myProject:myApp:explode 

我很困惑,当我需要完全合格的名字,因为只是运行buildr myApp工作的罚款。