Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 2303 invoked from network); 28 Aug 2003 13:52:54 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 28 Aug 2003 13:52:54 -0000 Received: (qmail 81359 invoked by uid 500); 28 Aug 2003 13:51:19 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 81275 invoked by uid 500); 28 Aug 2003 13:51:18 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 81198 invoked from network); 28 Aug 2003 13:51:17 -0000 Received: from unknown (HELO www.jamagination.com) (66.224.27.210) by daedalus.apache.org with SMTP; 28 Aug 2003 13:51:17 -0000 Received: from tportable ([66.52.75.110]) by www.jamagination.com (Netscape Messaging Server 4.15) with ESMTP id HKC15V00.00J for ; Thu, 28 Aug 2003 06:51:31 -0700 Reply-To: From: "Mike D'Ambrogia" To: "Ant Users List" Subject: junit problem w/JUnitTask and/or ZipException Date: Thu, 28 Aug 2003 06:51:16 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 In-Reply-To: <879A5AD5DD0ED511891F0003473A9B5608FF6E70@Z011004> 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 I gotta be doing something really stupid here, somewhat new to both Java and ANT so if my issue this has the itchy "newbie feel" to it then you'll know why. My money is on a classpath conflict issue, but I can't for the life of me figure out what/where. I've put all the console output text (ANT diagnostic, ant -debug junit, build.xml snippet, etc) at http://www.tworock.com/mjd/java/junit_prob.html, too much info to include here. file size is 77k or so. Junit 3.8.1 and ANT 1.5.3, j2sdk1.4.1_03 on Win XP Home SP1a. I have confirmed that optional.jar in c:\ant\lib does contain JUnitTask at org.apache.tools.ant.taskdefs.optional.junit. I've also run all 3 of the junit sample tests without issue from the command line. Using netbeans 3.5.1 as my IDE, and the test(s) all run without issue from inside the IDE. I'm having trouble with a junit task generating a JUnitTask.execute error on my testfile DBObjectTest.class: build.xml [51] Test DbObjectTest failed at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav a:568) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav a:527) at org.apache.tools.ant.Task.perform(Task.java:341) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:336) at org.apache.tools.ant.Project.executeTarget(Project.java:1339) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397) at org.apache.tools.ant.Task.perform(Task.java:341) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:336) at org.apache.tools.ant.Project.executeTarget(Project.java:1339) at org.apache.tools.ant.Project.executeTargets(Project.java:1255) at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:331) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:118) and I get this error too which doesn't make sense: Ignoring Exception java.util.zip.ZipException: error in opening zip file reading resource DbObjectTest.class from C:\Documents and Settings\miked\My Documents\ir-dev\jUnit\com\iroyalty\db\DbObjectTest.class my text files are not in a .jar/zip so I'm not sure why I'm getting a ZipException issue the dir tree for src and test look like src = C:\Documents and Settings\miked\My Documents\ir-dev\jsp\WEB-INF\classes\com\iroyalty\db tests = C:\Documents and Settings\miked\My Documents\ir-dev\jUnit\com\iroyalty\db build file snippet is currently this: All help appreciated, Mike --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org