Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 0c124ab2c7
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (13 sloc) 0.323 kb
require 'rake/packagetask'
directory 'out/war/WEB-INF'
task :clean do
rm_rf 'out'
end
task :war => [:clean, 'out/war/WEB-INF'] do
cp_r 'lib', 'out/war/WEB-INF/classes'
cp_r 'deps', 'out/war/WEB-INF/lib'
cp 'web.xml', 'out/war/WEB-INF/web.xml'
chdir('out/war') do
sh 'zip -r ../../out/app.war .'
end
end
Jump to Line
Something went wrong with that request. Please try again.