Sha256: 48e90f8acc76f0eb5763c1035f3e55e849cb933899904e693cd4d65d81250956

Contents?: true

Size: 735 Bytes

Versions: 16

Compression:

Stored size: 735 Bytes

Contents

require 'jbundler/configurator'
require 'maven/ruby/maven'
require 'fileutils'
module JBundler
  class Tree

    def initialize( config )
      @config = Configurator.new( config )
    end

    def show_it( debug = false )
      m = Maven::Ruby::Maven.new
      m.options[ '-f' ] = File.join( File.dirname( __FILE__ ), 
                                     'dependency_pom.rb' )
      m.options[ '-q' ] = nil unless debug
      m.verbose = debug

      @config.configure( m )

      puts '...'

      tree = File.join( File.expand_path( @config.work_dir ), 
                                 'tree.txt' )
      m.property( 'jbundler.outputFile', tree )

      m.exec( 'dependency:tree' )

      puts File.read( tree )
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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