Sha256: 914f60b94d9afd21346c7c14ac2be03897c60787e7c0885ceacebb37937862f7
Contents?: true
Size: 1.01 KB
Versions: 16
Compression:
Stored size: 1.01 KB
Contents
require 'jbundler/pom_runner' require 'fileutils' module JBundler class JRubyComplete < PomRunner def initialize( config, options ) super options work_dir = File.expand_path( config.work_dir ) maven.property( 'jbundler.workdir', work_dir ) maven.property( 'jbundler.basedir', config.basedir ) maven.property( 'jbundler.jarfile', config.jarfile ) maven.property( 'jbundler.gemfile', config.gemfile ) @tree = File.join( work_dir, 'tree.txt' ) maven.property( 'jbundler.outputFile', @tree ) end def pom_file File.join( File.dirname( __FILE__ ), 'jruby_complete_pom.rb' ) end def show_versions puts '...' FileUtils.rm_f( @tree ) exec( 'dependency:tree' ) if File.exists?( @tree ) puts File.read( @tree ) end end def packit puts '...' exec( :package ) puts puts 'now you can use jruby like this' puts puts "\tjava -jar jruby_complete_custom.jar" puts end end end
Version data entries
16 entries across 16 versions & 1 rubygems