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/05/25 09:31:43 UTC

[7/8] git commit: Ensure that the default configuration method yields so content can be supplied

Ensure that the default configuration method yields so content can be supplied


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

Branch: refs/heads/master
Commit: ee6471ad8bcbbc87c0aeaba4c86bff1e76295fa2
Parents: 6c391f0
Author: Peter Donald <pe...@realityforge.org>
Authored: Sun May 25 17:29:23 2014 +1000
Committer: Peter Donald <pe...@realityforge.org>
Committed: Sun May 25 17:29:23 2014 +1000

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


http://git-wip-us.apache.org/repos/asf/buildr/blob/ee6471ad/lib/buildr/ide/idea.rb
----------------------------------------------------------------------
diff --git a/lib/buildr/ide/idea.rb b/lib/buildr/ide/idea.rb
index 78431b3..ee363bb 100644
--- a/lib/buildr/ide/idea.rb
+++ b/lib/buildr/ide/idea.rb
@@ -658,7 +658,9 @@ module Buildr #:nodoc:
       end
 
       def add_default_configuration(type, factory_name)
-        add_configuration(nil, type, factory_name, true)
+        add_configuration(nil, type, factory_name, true) do |xml|
+          yield xml if block_given?
+        end
       end
 
       def add_postgres_data_source(name, options = {})