Skip to content

Instantly share code, notes, and snippets.

@kremso
Created October 31, 2010 10:30
Show Gist options
  • Select an option

  • Save kremso/656410 to your computer and use it in GitHub Desktop.

Select an option

Save kremso/656410 to your computer and use it in GitHub Desktop.
desc "Compile jkey-extractor"
task :build => :clean do
Javac.in('.').execute do |javac|
javac.src = 'src/**/*.java'
javac.cp << 'lib/**/*.jar'
javac.output = 'bin'
end
end
desc "Clean jkey-extractor build"
task :clean do
FileUtils.rm_rf Dir.glob('bin/*')
end
desc "Create jkey-extractor.jar"
task :jar => :build do
Jar.in('.').execute do |jar|
jar.name = 'jkeyextractor.jar'
jar.bin << 'bin'
jar.bin << 'etc'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment