Sha256: f72a02ca763f9cf60166857ad58f3e88f6556b3cfae66c3983f521d92e4c2e98
Contents?: true
Size: 727 Bytes
Versions: 15
Compression:
Stored size: 727 Bytes
Contents
jar_file = File.join(*%w(lib arjdbc jdbc adapter_java.jar)) begin require 'ant' directory "pkg/classes" CLEAN << "pkg" file jar_file => FileList['src/java/**/*.java', 'pkg/classes'] do rm_rf FileList['pkg/classes/**/*'] ant.javac :srcdir => "src/java", :destdir => "pkg/classes", :source => "1.5", :target => "1.5", :debug => true, :classpath => "${java.class.path}:${sun.boot.class.path}", :includeantRuntime => false ant.jar :basedir => "pkg/classes", :destfile => jar_file, :includes => "**/*.class" end desc "Compile the native Java code." task :jar => jar_file rescue LoadError task :jar do puts "Run 'jar' with JRuby to re-compile the agent extension class" end end
Version data entries
15 entries across 15 versions & 4 rubygems