Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 92344 invoked from network); 19 Sep 2003 11:49:34 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 19 Sep 2003 11:49:34 -0000 Received: (qmail 1361 invoked by uid 500); 19 Sep 2003 11:49:31 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 1106 invoked by uid 500); 19 Sep 2003 11:49:28 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 1092 invoked from network); 19 Sep 2003 11:49:28 -0000 Received: from unknown (HELO 137100.vserver.de) (62.75.137.100) by daedalus.apache.org with SMTP; 19 Sep 2003 11:49:28 -0000 Received: from D2CFT80J (localhost.localdomain [127.0.0.1]) (authenticated) by 137100.vserver.de (8.11.6/8.11.6) with ESMTP id h8JBnMd11837 for ; Fri, 19 Sep 2003 13:49:26 +0200 From: =?iso-8859-1?Q?Antoine_L=E9vy-Lambert?= To: "Ant Developers List" Subject: AW: cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional/junit JUnitTask.java Date: Fri, 19 Sep 2003 13:48:34 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <20030919091817.19030.qmail@minotaur.apache.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Stefan, I am a bit surprised that you solve this issue (classpath/includeantruntime) this way. The ant runtime is not in the CLASSPATH environment variable in ant1.6, but in the system property java.class.path. Or did I understand something wrongly ? Antoine -----Urspr�ngliche Nachricht----- Von: bodewig@apache.org [mailto:bodewig@apache.org] Gesendet: Freitag, 19. September 2003 11:18 An: ant-cvs@apache.org Betreff: cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional/junit JUnitTask.java bodewig 2003/09/19 02:18:16 Modified: . WHATSNEW src/main/org/apache/tools/ant/taskdefs/optional/junit JUnitTask.java Log: replaced the CLASSPATH instead of adding to it. PR: 14971 Revision Changes Path 1.503 +3 -0 ant/WHATSNEW Index: WHATSNEW =================================================================== RCS file: /home/cvs/ant/WHATSNEW,v retrieving revision 1.502 retrieving revision 1.503 diff -u -r1.502 -r1.503 --- WHATSNEW 18 Sep 2003 15:47:47 -0000 1.502 +++ WHATSNEW 19 Sep 2003 09:18:16 -0000 1.503 @@ -242,6 +242,9 @@ * The socket condition will now close the socket created to test. Bugzilla Report 23040. +* replaced the CLASSPATH instead + of adding to it. Bugzilla Report 14971. + Other changes: -------------- * All tasks can be used outside of s. Note that some tasks 1.83 +12 -1 ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java Index: JUnitTask.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTas k.java,v retrieving revision 1.82 retrieving revision 1.83 diff -u -r1.82 -r1.83 --- JUnitTask.java 17 Sep 2003 08:30:30 -0000 1.82 +++ JUnitTask.java 19 Sep 2003 09:18:16 -0000 1.83 @@ -717,6 +717,17 @@ cmd.createArgument().setValue("haltOnFailure=" + test.getHaltonfailure()); if (includeAntRuntime) { + Vector v = Execute.getProcEnvironment(); + Enumeration e = v.elements(); + while (e.hasMoreElements()) { + String s = (String) e.nextElement(); + if (s.startsWith("CLASSPATH=")) { + cmd.createClasspath(getProject()).createPath() + .append(new Path(getProject(), + s.substring(10 // "CLASSPATH=".length() + ))); + } + } log("Implicitly adding " + antRuntimeClasses + " to CLASSPATH", Project.MSG_VERBOSE); cmd.createClasspath(getProject()).createPath() --------------------------------------------------------------------- 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