Return-Path: X-Original-To: apmail-buildr-commits-archive@www.apache.org Delivered-To: apmail-buildr-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0F603115DB for ; Sun, 25 May 2014 07:31:38 +0000 (UTC) Received: (qmail 64531 invoked by uid 500); 25 May 2014 07:31:38 -0000 Delivered-To: apmail-buildr-commits-archive@buildr.apache.org Received: (qmail 64469 invoked by uid 500); 25 May 2014 07:31:38 -0000 Mailing-List: contact commits-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@buildr.apache.org Delivered-To: mailing list commits@buildr.apache.org Received: (qmail 64448 invoked by uid 99); 25 May 2014 07:31:38 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 May 2014 07:31:38 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id AD2549A43B1; Sun, 25 May 2014 07:31:37 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: donaldp@apache.org To: commits@buildr.apache.org Date: Sun, 25 May 2014 07:31:43 -0000 Message-Id: <2356014903d64f6db0bcaf84577e3b43@git.apache.org> In-Reply-To: <0d2b420c189e4a34a6d90a81671c4279@git.apache.org> References: <0d2b420c189e4a34a6d90a81671c4279@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [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 Authored: Sun May 25 17:29:23 2014 +1000 Committer: Peter Donald 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 = {})