Return-Path: Delivered-To: apmail-buildr-users-archive@www.apache.org Received: (qmail 80472 invoked from network); 9 Sep 2010 13:23:09 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Sep 2010 13:23:09 -0000 Received: (qmail 49220 invoked by uid 500); 9 Sep 2010 13:23:09 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 49078 invoked by uid 500); 9 Sep 2010 13:23:06 -0000 Mailing-List: contact users-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@buildr.apache.org Delivered-To: mailing list users@buildr.apache.org Received: (qmail 48312 invoked by uid 99); 9 Sep 2010 13:23:05 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Sep 2010 13:23:05 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kristof.jozsa@gmail.com designates 209.85.216.172 as permitted sender) Received: from [209.85.216.172] (HELO mail-qy0-f172.google.com) (209.85.216.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Sep 2010 13:22:42 +0000 Received: by qyk1 with SMTP id 1so6735378qyk.17 for ; Thu, 09 Sep 2010 06:22:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=lo4Lbtn86NgA5H+XP4U2u9lmwyzFU0sw1oXPwFah+jY=; b=Mhifk3ql8O6kMdTI9+oZe8IT9UY+IyJ5fSN+wtpp43IeOWcdCFzQmrCxNafWpOn4PN qPyGQtDNIvYUOePjU+NYU4GzIV2dagR3k4866MyTgHUmihyzlfEp/fqSv8vxgS5mB5zz BsRjvjcZ6IPysWHXsoEMUyF+FYlUCc77gzh+k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=V5X6dwCBDxHd5ysetRfYk6OU1sEW509LX/K0Kl7VogFk8ma6Yj1OE/MBefTWQ48hR/ 61FVGOpv/iSUkwmhAGE46ZzPwTw2fae3r0Wc3bzucxmHfhsEheLITpQHkc2NbAAxz7bi t26a6+4+MVouy4Bf5wBJ7RWht2CHy+gZmCA70= Received: by 10.229.235.146 with SMTP id kg18mr399950qcb.205.1284038541303; Thu, 09 Sep 2010 06:22:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.228.8 with HTTP; Thu, 9 Sep 2010 06:22:01 -0700 (PDT) In-Reply-To: References: From: Kristof Jozsa Date: Thu, 9 Sep 2010 13:22:01 +0000 Message-ID: Subject: Re: subprojects and eclipse classpath generation To: users@buildr.apache.org, antoine@lunar-ocean.com Content-Type: multipart/alternative; boundary=0016e64bdda821e11e048fd385a8 X-Virus-Checked: Checked by ClamAV on apache.org --0016e64bdda821e11e048fd385a8 Content-Type: text/plain; charset=UTF-8 regarding this enhancement request - shall I try to patch it myself? (eg. is there any chance to get my patch in the codebase once it's written? :)) cheers, K On Wed, Jul 7, 2010 at 8:25 AM, Kristof Jozsa wrote: > Hi Antoine, > > it's at https://issues.apache.org/jira/browse/BUILDR-465 > > cheers, > K > > On Tue, Jul 6, 2010 at 5:25 PM, Antoine Toulme > wrote: > > Kristof, can you open an enhancement request so that people can override > > Eclipse project names ? > > > > In general, I am also in favor of avoiding long names with dashes, but > they > > are the only way to avoid collisions of namespaces. > > > > Something like eclipse.project_name should be made available if you want > to > > override the name of the project name. > > > > On Tue, Jul 6, 2010 at 02:12, Kristof Jozsa > wrote: > > > >> examining the buildr gem source, it seems that eclipse.rb:334 adds the > >> classpath entries using the project ids which use the fully qualified > >> name of subprojects in the Parent:Subproject form. I made it fix for > >> my needs changing this short method to: > >> > >> def src_projects project_libs > >> project_libs.map(&:id).sort.uniq.each do |project_id| > >> stripped = project_id.gsub(/.*-/, '') > >> @xml.classpathentry :kind=>'src', :combineaccessrules=>'false', > >> :path=>"/#{stripped}" > >> end > >> end > >> > >> so if anyone else bumps into this problem, something like this might > >> help. I just wonder if anyone names it's Eclipse projects using the > >> naming schema suggested by this Buildr behaviour at all.. :) > >> > >> cheers, > >> K > >> > >> On Mon, Jul 5, 2010 at 10:06 AM, Kristof Jozsa > > >> wrote: > >> > Hi, > >> > > >> > assume I have a buildfile with the following projects structure: > >> > > >> > Parent > >> > |- Sub1 > >> > |- Sub2 > >> > > >> > where Sub2 also depends on Sub1. As this is an older project where I'm > >> > trying to introduce Buildr, the directories are named like 'parent', > >> > 'sub1' and 'sub2' (all lowercase). > >> > > >> > Once I execute the eclipse task of buildr, it generates an eclipse > >> > classpath which makes Sub2 module depend on the Sub1 module > >> > (correctly) but using the name "Parent-Sub1". Is there any way to > >> > override this naming with our own somehow easily? > >> > > >> > thanks, > >> > K > >> > > >> > > > --0016e64bdda821e11e048fd385a8--