Skip to content

Instantly share code, notes, and snippets.

@brasten
Created December 8, 2010 02:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brasten/732816 to your computer and use it in GitHub Desktop.
Save brasten/732816 to your computer and use it in GitHub Desktop.
Using Ant from Rakefile in JRuby
task :war do
ant.war :destfile => 'pkg/project.war' do |war|
war.fileset :dir => 'public'
war.webinf :dir => '.' do |wi|
wi.include :name => 'config/**/*'
wi.include :name => 'lib/**/*'
wi.include :name => 'app/**/*'
wi.include :name => 'vendor/**/*'
wi.include :name => 'config.ru'
wi.include :name => 'Rakefile'
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment