You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by do...@apache.org on 2014/11/18 07:32:51 UTC

buildr git commit: Allow customization of the configuration name for the GlassFIsh configuration

Repository: buildr
Updated Branches:
  refs/heads/master 19b4a1024 -> 28e2305b3


Allow customization of the configuration name for the GlassFIsh configuration


Project: http://git-wip-us.apache.org/repos/asf/buildr/repo
Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/28e2305b
Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/28e2305b
Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/28e2305b

Branch: refs/heads/master
Commit: 28e2305b3d52c357b3963a246e7ddfe911e627d5
Parents: 19b4a10
Author: Peter Donald <pe...@realityforge.org>
Authored: Tue Nov 18 17:32:46 2014 +1100
Committer: Peter Donald <pe...@realityforge.org>
Committed: Tue Nov 18 17:32:46 2014 +1100

----------------------------------------------------------------------
 lib/buildr/ide/idea.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/buildr/blob/28e2305b/lib/buildr/ide/idea.rb
----------------------------------------------------------------------
diff --git a/lib/buildr/ide/idea.rb b/lib/buildr/ide/idea.rb
index 09e1619..ab396cb 100644
--- a/lib/buildr/ide/idea.rb
+++ b/lib/buildr/ide/idea.rb
@@ -944,13 +944,14 @@ module Buildr #:nodoc:
         artifact_name = options[:name] || project.iml.id
         version = options[:version] || '4.1.0'
         server_name = options[:server_name] || "GlassFish #{version}"
+        configuration_name = options[:configuration_name] || server_name
         domain_name = options[:domain] || project.iml.id
         domain_port = options[:port] || '9009'
         packaged = options[:packaged] || {}
         exploded = options[:exploded] || {}
 
         add_to_composite_component(self.configurations) do |xml|
-          xml.configuration(:name => server_name, :type => 'GlassfishConfiguration', :factoryName => 'Local', :default => false, :APPLICATION_SERVER_NAME => server_name) do |xml|
+          xml.configuration(:name => configuration_name, :type => 'GlassfishConfiguration', :factoryName => 'Local', :default => false, :APPLICATION_SERVER_NAME => server_name) do |xml|
             xml.option(:name => 'OPEN_IN_BROWSER', :value => 'false')
             xml.option(:name => 'UPDATING_POLICY', :value => 'restart-server')