blob: f07e296ff337a4f14c804b5e842a23282c0d9108 [file] [log] [blame]
require 'buildr/jetty'
require 'readline'
define "webapp", :group => 'com.example', :version => '1.0' do
compile.with(Buildr::Jetty::REQUIRES)
task("deploy-app"=>[package(:war), jetty.use]) do |task|
class << task ; attr_accessor :url, :path ; end
task.url = "http://localhost:8080/hello"
task.path = jetty.deploy(task.url, task.prerequisites.first)
end
end