Skip to content

Instantly share code, notes, and snippets.

@joannecheng
Created August 15, 2012 21:16
Show Gist options
  • Save joannecheng/3363758 to your computer and use it in GitHub Desktop.
Save joannecheng/3363758 to your computer and use it in GitHub Desktop.
ant build scripts in jruby
# Make sure ant is installed and available on the machine
require 'ant'
ant :name => 'hello', :default => 'hello' do
target :name => 'hello' do
echo :message => 'Hello world!'
end
end
# $ jruby build.rb
# > hello:
# > Hello world!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment