Sha256: 59f41fe0371b07b9c3880a874ac5768498e10c1cf382d88e4307d0bb94ab7b6f

Contents?: true

Size: 887 Bytes

Versions: 12

Compression:

Stored size: 887 Bytes

Contents

require 'jbundler/configurator'
module JBundler
  class Configurator

    attr_accessor :groups, :bootstrap, :verbose, :compile, :work_dir

    def initialize( config )
      @config = config
    end

    def configure( maven )
      maven.property( 'jbundler.basedir', @config.basedir )
      maven.property( 'jbundler.jarfile', @config.jarfile )
      maven.property( 'jbundler.gemfile', @config.gemfile )
      maven.property( 'jbundler.workdir', work_dir )
      maven.property( 'jbundler.groups', @groups )
      maven.property( 'jbundler.bootstrap', @bootstrap )
      maven.property( 'maven.repo.local', @config.local_repository ) if @config.local_repository
      maven.options[ '-s' ] = @config.settings if @config.settings
      maven.options[ '-o' ] = nil if @config.offline
    end

    def work_dir
      @work_dir ||= File.expand_path( @config.work_dir )
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
jbundler-0.9.4 lib/jbundler/configurator.rb
jbundler-0.9.3 lib/jbundler/configurator.rb
jbundler-0.9.2 lib/jbundler/configurator.rb
jbundler-0.9.1 lib/jbundler/configurator.rb
jbundler-0.9.0 lib/jbundler/configurator.rb
jbundler-0.8.0 lib/jbundler/configurator.rb
jbundler-0.7.4 lib/jbundler/configurator.rb
jbundler-0.7.3 lib/jbundler/configurator.rb
jbundler-0.7.2 lib/jbundler/configurator.rb
jbundler-0.7.1 lib/jbundler/configurator.rb
jbundler-0.7.0 lib/jbundler/configurator.rb
jbundler-0.6.4 lib/jbundler/configurator.rb