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 340AB105DE for ; Tue, 15 Oct 2013 22:26:05 +0000 (UTC) Received: (qmail 25132 invoked by uid 500); 15 Oct 2013 22:26:05 -0000 Delivered-To: apmail-buildr-commits-archive@buildr.apache.org Received: (qmail 25103 invoked by uid 500); 15 Oct 2013 22:26:04 -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 25095 invoked by uid 99); 15 Oct 2013 22:26:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Oct 2013 22:26:04 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Oct 2013 22:26:03 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 2F93A2388999; Tue, 15 Oct 2013 22:25:43 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1532568 - in /buildr/trunk: CHANGELOG lib/buildr/ide/idea.rb Date: Tue, 15 Oct 2013 22:25:43 -0000 To: commits@buildr.apache.org From: donaldp@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20131015222543.2F93A2388999@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: donaldp Date: Tue Oct 15 22:25:42 2013 New Revision: 1532568 URL: http://svn.apache.org/r1532568 Log: Bug in IdeaProject.partition_dependencies resulted in projects being rebuilt if artifacts were added to the project with dependencies on the current project. Modified: buildr/trunk/CHANGELOG buildr/trunk/lib/buildr/ide/idea.rb Modified: buildr/trunk/CHANGELOG URL: http://svn.apache.org/viewvc/buildr/trunk/CHANGELOG?rev=1532568&r1=1532567&r2=1532568&view=diff ============================================================================== --- buildr/trunk/CHANGELOG (original) +++ buildr/trunk/CHANGELOG Tue Oct 15 22:25:42 2013 @@ -1,4 +1,7 @@ 1.4.15 (Pending) +* Fixed: Bug in IdeaProject.partition_dependencies resulted in + projects being rebuilt if artifacts were added to the + project with dependencies on the current project. * Fixed: BUILDR-605 - Ensure package task invokes included paths. * Fixed: BUILDR-609 - compile.from should accept Task argument. Modified: buildr/trunk/lib/buildr/ide/idea.rb URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/ide/idea.rb?rev=1532568&r1=1532567&r2=1532568&view=diff ============================================================================== --- buildr/trunk/lib/buildr/ide/idea.rb (original) +++ buildr/trunk/lib/buildr/ide/idea.rb Tue Oct 15 22:25:42 2013 @@ -1013,7 +1013,7 @@ module Buildr #:nodoc: dependencies.each do |dependency| artifacts = Buildr.artifacts(dependency) artifacts_as_strings = artifacts.map(&:to_s) - all_projects = Buildr::Project.instance_variable_get("@projects").keys - [buildr_project.name] + all_projects = Buildr::Project.instance_variable_get("@projects").keys project = Buildr.projects(all_projects).detect do |project| [project.packages, project.compile.target, project.resources.target, project.test.compile.target, project.test.resources.target].flatten. detect { |component| artifacts_as_strings.include?(component.to_s) }