Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 79730 invoked from network); 31 Aug 2006 19:57:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 Aug 2006 19:57:13 -0000 Received: (qmail 47621 invoked by uid 500); 31 Aug 2006 19:56:31 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 47222 invoked by uid 500); 31 Aug 2006 19:56:30 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 46734 invoked by uid 99); 31 Aug 2006 19:56:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Aug 2006 12:56:27 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jak-ant-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Aug 2006 12:26:56 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GIsBP-0005lL-3u for dev@ant.apache.org; Thu, 31 Aug 2006 21:26:35 +0200 Received: from cltea-proxy-2.sun.com ([192.18.128.13]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 Aug 2006 21:26:35 +0200 Received: from jesse.glick by cltea-proxy-2.sun.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 Aug 2006 21:26:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: dev@ant.apache.org From: Jesse Glick Subject: Re: Building Ant 1.7beta Date: Thu, 31 Aug 2006 15:26:21 -0400 Organization: Sun Microsystems / NetBeans Lines: 40 Message-ID: References: <44F0D84C.5060608@kitfox.com> <87zmdogosk.fsf@www.samaflost.de> <87odu2df54.fsf@www.samaflost.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cltea-proxy-2.sun.com User-Agent: Thunderbird 1.5.0.5 (X11/20060808) In-Reply-To: <87odu2df54.fsf@www.samaflost.de> Sender: news X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Stefan Bodewig wrote: > you'd just be asking for classloader problems if you have two different > versions of Ant inside the same Java VM while compiling Ant or running > the Unit tests, aren't you? This is another pet peeve of mine: apparently when you run the Ant unit tests, the version of Ant it is testing is the version of Ant running build.xml, *not* the (presumably modified) source code in your svn checkout. This is just a mistake, I think. All of the unit tests ought to be forked and ought to use the Ant binary that you are developing. Am I really the only one to have been burnt (repeatedly) by this? I keep on writing some code, writing a test, hmm test fails. OK tweak the code to print some diagnostics... they're never printed. Hmm. Add "throw new Error();" into the middle of a method I'm sure must be executed; still nothing. Tear out hair, then remember I'm not even running the code I just wrote at all. Anyway, along with the 1.6.5-vs-trunk issue I eventually just fixed this for myself by writing a wrapper script (very much like the bootstrap.xml you mention) that runs under 1.6.5 yet builds trunk and ensures that tests are run by the right copy of Ant. Part of my NB project setup but would work independently of any IDE too. >> Similarly you could not use a bundled Ant binary on Linux to run >> ant/build.xml targets (or use Bash completions...). > > The first thing I'd do is throw out the bundled binary and install the > last released version myself anyway ;-) Not always easy to throw out an RPM (other RPMs may dep on it). > My rent is paid by working on projects that don't use Ant at all 8-) Bummer! -J. -- jesse.glick@sun.com x22801 netbeans.org ant.apache.org http://google.com/search?q=e%5E%28pi*i%29%2B1 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org