Return-Path: Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 76075 invoked by uid 500); 27 Jun 2003 13:58:16 -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 76020 invoked from network); 27 Jun 2003 13:58:16 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 27 Jun 2003 13:58:16 -0000 Received: (qmail 28976 invoked by uid 50); 27 Jun 2003 14:00:38 -0000 Date: 27 Jun 2003 14:00:38 -0000 Message-ID: <20030627140038.28975.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: dev@ant.apache.org Cc: Subject: DO NOT REPLY [Bug 21142] New: - junit task's classpath doesn't override the existing classpath settings X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21142 junit task's classpath doesn't override the existing classpath settings Summary: junit task's classpath doesn't override the existing classpath settings Product: Ant Version: 1.5.3 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Optional Tasks AssignedTo: dev@ant.apache.org ReportedBy: jari.nurminen@iki.fi When defining a nested classpath element in task it doesn't override the system's CLASSPATH as it does with task. Below is an example what I mean. This should override the existing classpath settings and use only "project.class.path" path, but it doesn't. Now the first question is it even supposed to override? If not, it should because: - the task behaviour is a bit confusing when comparing to task behaviour. - this leads to problems in some cases (see example below). Let's suppose that I'm developing something with a version of Xerces that is different from the one ant uses (and has under it's ANT_HOME/lib) directory. Let's call these versions: - XercesMyLib.jar - resides in my projects lib directory - XercesAnt.jar - resides in ANT_HOME/lib directory Now I'm having task like this. And I forget to put XercesMyLib.jar into my project.class.path. POSSIBLE RESULTS (both of them aren't very desirable): - Unit tests fail because of the wrong Xerces version - Unit tests pass, but the project won't execute because the correct Xerces libraries are missing. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org