2011-08-23 69 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工作的罰款。