Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (16 sloc) 0.532 kb
task :clean do
require 'fileutils'
FileUtils.rm_rf 'target'
end
task :compile do
Dir.mkdir 'target'
Dir.mkdir 'target/filtered-classes/'
Dir.mkdir 'target/filtered-classes/org/'
Dir.mkdir 'target/filtered-classes/org/json/'
FileUtils.cp_r Dir.glob('src/main/java/org/json/*.java'), 'target/filtered-classes/org/json/'
Dir.mkdir 'target/classes/'
`javac -cp lib/junit-4.10.jar -d target/classes target/filtered-classes/org/json/*.java`
end
task :jar do
`jar cvf ./target/json-20120110.jar ./target/classes`
end
Jump to Line
Something went wrong with that request. Please try again.