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