Sha256: ea6036d77a25ddac361fb1ddcedbe742991658eb5ff44824bca619b372762167
Contents?: true
Size: 771 Bytes
Versions: 1
Compression:
Stored size: 771 Bytes
Contents
require 'ant' require 'fileutils' include FileUtils TARGET_DIR = 'target' LIBS_DIR = 'trinidad-libs' JAR_NAME = 'trinidad-daemon-extension.jar' namespace :ant do desc 'Clean the java target directory' task :clean do rm_f TARGET_DIR rm_f "#{LIBS_DIR}/#{JAR_NAME}" end desc 'Compile the java classes' task :compile => :clean do opts = { :fork => 'true', :failonerror => 'true', :srcdir => 'src/main', :destdir => TARGET_DIR, :classpath => Dir.glob('trinidad-libs/*.jar').join(':') } mkdir_p TARGET_DIR ant.javac(opts) end desc 'Create the jar file' task :build => :compile do opts = { :destfile => "#{LIBS_DIR}/#{JAR_NAME}", :basedir => TARGET_DIR } ant.jar(opts) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
trinidad_daemon_extension-0.1.0 | rakelib/build.rake |