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

Version Path
jbundler-0.9.4 lib/jbundler/jruby_complete.rb
jbundler-0.9.3 lib/jbundler/jruby_complete.rb
jbundler-0.9.2 lib/jbundler/jruby_complete.rb
jbundler-0.9.1 lib/jbundler/jruby_complete.rb
jbundler-0.9.0 lib/jbundler/jruby_complete.rb
jbundler-0.8.0 lib/jbundler/jruby_complete.rb
jbundler-0.7.4 lib/jbundler/jruby_complete.rb
jbundler-0.7.3 lib/jbundler/jruby_complete.rb
jbundler-0.7.2 lib/jbundler/jruby_complete.rb
jbundler-0.7.1 lib/jbundler/jruby_complete.rb
jbundler-0.7.0 lib/jbundler/jruby_complete.rb
jbundler-0.6.4 lib/jbundler/jruby_complete.rb
jbundler-0.6.3 lib/jbundler/jruby_complete.rb
jbundler-0.6.2 lib/jbundler/jruby_complete.rb
jbundler-0.6.1 lib/jbundler/jruby_complete.rb
jbundler-0.6.0 lib/jbundler/jruby_complete.rb