Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 37786 invoked from network); 30 Dec 2006 23:46:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Dec 2006 23:46:46 -0000 Received: (qmail 19148 invoked by uid 500); 30 Dec 2006 23:46:52 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 19092 invoked by uid 500); 30 Dec 2006 23:46:52 -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 19081 invoked by uid 99); 30 Dec 2006 23:46:52 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Dec 2006 15:46:52 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of peter.kitt.reilly@gmail.com designates 64.233.182.187 as permitted sender) Received: from [64.233.182.187] (HELO nf-out-0910.google.com) (64.233.182.187) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Dec 2006 15:46:42 -0800 Received: by nf-out-0910.google.com with SMTP id o63so5719477nfa for ; Sat, 30 Dec 2006 15:46:20 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Vdo/w4GYUsdoEbFycQLUFzN5mXalV1CvWKoVphp21EhBiZwWoE2o9mZlFnsuKQPkxZ7WguD4u22vizLObHPRi8taDXwfGZumfDpVzD1fAEKrX3OYVvYwq4o2ot0e+gwsb7SgNrpXAnwgumDCTdhoRFUDBwlaYf5ZWHyCKHxRgbc= Received: by 10.82.114.3 with SMTP id m3mr1256195buc.1167522380515; Sat, 30 Dec 2006 15:46:20 -0800 (PST) Received: by 10.82.152.11 with HTTP; Sat, 30 Dec 2006 15:46:20 -0800 (PST) Message-ID: Date: Sat, 30 Dec 2006 23:46:20 +0000 From: "Peter Reilly" To: "Ant Developers List" Subject: Re: svn commit: r491045 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061229165157.09A601A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org On 12/30/06, Jesse Glick wrote: > peterreilly@apache.org wrote: > > URL: http://svn.apache.org/viewvc?view=rev&rev=491045 > > Check if classpath used with forked junit contains multi versions of ant > > I just spent about two hours today trying to figure out why my unit > tests were failing with a FNFE on junitvmwatcher*.properties from > JUnitTask.executeAsForked. Turned out I was somehow mixing Ant 1.6.5 and > 1.7.0. (The unit test was running a nested copy of Ant which in turn ran > forked unit tests...don't ask.) Is that what this commit checks for? Exactly. I think that mixing of ant.1.6.5 jars with ant.1.7 will happen quite a lot. This patch checks if multiple versions of ant.jar is in the junit classpath. Another way to fix this is to change the order of jars in the junit command line. Currently the ant jars are placed after the jars in the nested so the jars take priority. I did not what to do this as it would change the behaviour of the task. Peter > > -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 > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org