buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject [3/3] buildr git commit: Added support for passing `:iml_name` parameter to `ipr.add_gwt_configuration`
Date Thu, 30 Nov 2017 10:33:56 GMT
Added support for passing `:iml_name` parameter to `ipr.add_gwt_configuration`


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

Branch: refs/heads/master
Commit: f8381a3c08fc7e1a6825f226e2e86892296232df
Parents: 8db0ba5
Author: Peter Donald <peter@realityforge.org>
Authored: Thu Nov 30 21:33:46 2017 +1100
Committer: Peter Donald <peter@realityforge.org>
Committed: Thu Nov 30 21:33:46 2017 +1100

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


http://git-wip-us.apache.org/repos/asf/buildr/blob/f8381a3c/CHANGELOG
----------------------------------------------------------------------
diff --git a/CHANGELOG b/CHANGELOG
index 9a73ba7..59e30ff 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,5 @@
 1.5.5 (Pending)
+* Added:  IDEA Extension: Added support for passing `:iml_name` parameter to `ipr.add_gwt_configuration`
 
 1.5.4 (2017-11-29)
 * Added:  Findbugs Addon: Upgrade to version 3.0.1 of findbugs.

http://git-wip-us.apache.org/repos/asf/buildr/blob/f8381a3c/lib/buildr/ide/idea.rb
----------------------------------------------------------------------
diff --git a/lib/buildr/ide/idea.rb b/lib/buildr/ide/idea.rb
index 2898625..02b505d 100644
--- a/lib/buildr/ide/idea.rb
+++ b/lib/buildr/ide/idea.rb
@@ -991,7 +991,7 @@ module Buildr #:nodoc:
         start_javascript_debugger = options[:start_javascript_debugger].nil? ? true : !!options[:start_javascript_debugger]
 
         add_configuration(name, 'GWT.ConfigurationType', 'GWT Configuration', false, :singleton
=> singleton) do |xml|
-          xml.module(:name => project.iml.name)
+          xml.module(:name => options[:iml_name] || project.iml.name)
 
           xml.option(:name => 'VM_PARAMETERS', :value => vm_parameters)
           xml.option(:name => 'RUN_PAGE', :value => launch_page) if launch_page


Mime
View raw message