lib/jbundler/configurator.rb in jbundler-0.6.3 vs lib/jbundler/configurator.rb in jbundler-0.6.4
- old
+ new
@@ -13,11 +13,11 @@
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 )
- maven.options[ '-s' ] = @config.settings
+ 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 )