Return-Path: Delivered-To: apmail-incubator-buildr-commits-archive@locus.apache.org Received: (qmail 79439 invoked from network); 29 Feb 2008 03:28:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Feb 2008 03:28:10 -0000 Received: (qmail 84840 invoked by uid 500); 29 Feb 2008 03:28:06 -0000 Delivered-To: apmail-incubator-buildr-commits-archive@incubator.apache.org Received: (qmail 84824 invoked by uid 500); 29 Feb 2008 03:28:05 -0000 Mailing-List: contact buildr-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: buildr-dev@incubator.apache.org Delivered-To: mailing list buildr-commits@incubator.apache.org Received: (qmail 84815 invoked by uid 99); 29 Feb 2008 03:28:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Feb 2008 19:28:05 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Feb 2008 03:27:40 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 134D21A9832; Thu, 28 Feb 2008 19:27:50 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r632218 - in /incubator/buildr/trunk: buildfile lib/ide/idea7x.rb Date: Fri, 29 Feb 2008 03:27:49 -0000 To: buildr-commits@incubator.apache.org From: assaf@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080229032750.134D21A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: assaf Date: Thu Feb 28 19:27:47 2008 New Revision: 632218 URL: http://svn.apache.org/viewvc?rev=632218&view=rev Log: Another quick fix, certified to 'works on my machine' Modified: incubator/buildr/trunk/buildfile incubator/buildr/trunk/lib/ide/idea7x.rb Modified: incubator/buildr/trunk/buildfile URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/buildfile?rev=632218&r1=632217&r2=632218&view=diff ============================================================================== --- incubator/buildr/trunk/buildfile (original) +++ incubator/buildr/trunk/buildfile Thu Feb 28 19:27:47 2008 @@ -5,6 +5,7 @@ options = :javac, { :source=>'1.4', :target=>'1.4', :debug=>false } define 'java' do compile.from(FileList['lib/java/**/*.java']).into('lib/java').using(*options) + package :jar, :group=>'foo', :version=>'1.0' end define 'buildr' do compile.from(FileList['lib/buildr/**/*.java']).into('lib/buildr').using(*options).with(Buildr::Jetty::REQUIRES) Modified: incubator/buildr/trunk/lib/ide/idea7x.rb URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/lib/ide/idea7x.rb?rev=632218&r1=632217&r2=632218&view=diff ============================================================================== --- incubator/buildr/trunk/lib/ide/idea7x.rb (original) +++ incubator/buildr/trunk/lib/ide/idea7x.rb Thu Feb 28 19:27:47 2008 @@ -55,7 +55,7 @@ # Find a path relative to the project's root directory. relative = lambda do |path| - Pathname.new(path.to_s).relative_path_from(Pathname.new(project.path_to)).to_s + Pathname.new(File.expand_path(path.to_s)).relative_path_from(Pathname.new(project.path_to)).to_s end m2repo = Buildr::Repositories.instance.local @@ -132,7 +132,7 @@ def generate_content(project, xml, generated, relative) xml.content(:url=>"#{MODULE_DIR_URL}") do - if project.has_compile_sources + unless project.sources.empty? srcs = project.compile.sources.map { |src| relative[src.to_s] } + generated.map { |src| relative[src.to_s] } srcs.sort.uniq.each do |path| xml.sourceFolder :url=>"#{MODULE_DIR_URL}/#{path}", :isTestSource=>"false" @@ -152,7 +152,7 @@ end end end - xml.excludeFolder :url=>"#{MODULE_DIR_URL}/#{relative[project.compile.target.to_s]}" if project.has_compile_sources + xml.excludeFolder :url=>"#{MODULE_DIR_URL}/#{relative[project.compile.target.to_s]}" if project.compile.target end end