Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 19260 invoked from network); 8 Aug 2000 18:39:58 -0000 Received: from f177.law3.hotmail.com (HELO hotmail.com) (209.185.241.177) by locus.apache.org with SMTP; 8 Aug 2000 18:39:58 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 8 Aug 2000 11:39:31 -0700 Received: from 156.153.255.250 by lw3fd.law3.hotmail.msn.com with HTTP; Tue, 08 Aug 2000 GMT X-Originating-IP: [156.153.255.250] From: "Miten Mehta" To: ant-user@jakarta.apache.org Subject: Re: java task strangeness... Date: Tue, 08 Aug 2000 18:39:31 GMT Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 08 Aug 2000 18:39:31.0884 (UTC) FILETIME=[FDDE56C0:01C00167] X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hello, did you try to set basedir to absolute path and use fork attribute for java task. >From: David Weller >Reply-To: ant-user@jakarta.apache.org >To: ant-user@jakarta.apache.org >Subject: java task strangeness... >Date: Tue, 8 Aug 2000 10:53:48 -0700 (PDT) > >(By now, I'll bet Stefan has me lumped into the "Annoying Ant Newbie" >category >:-) > > >Well, here's my next request for help.... >I have a build file that simply invokes the java task: > > > > > classpath="c:/ant_test/tools/xml.jar;c:/ant_test/tools" /> > > > >Unfortunately, it raises a nasty/strange exception (fyi, I'm now using the >1.2 >build from this morning)(Also, I've trimmed the exception stack, I'll >repost >the full one if it's needed): >C:\ant_test\com\teachscape\common\subject>ant ejb_gen >Buildfile: build.xml > >ejb_gen: > Generating Enterprise Java code in directory >C:\ant_test\com\teachscape\comm >on\subject... >java.util.zip.ZipException: error in opening zip file > at java.util.zip.ZipFile.open(Native Method) > at java.util.zip.ZipFile.(ZipFile.java:69) > at java.util.zip.ZipFile.(ZipFile.java:84) > at >org.apache.tools.ant.AntClassLoader.getResourceStream(AntClassLoader. >java, Compiled Code) >...[deletia]..... > at org.apache.tools.ant.Target.execute(Target.java, Compiled Code) > at org.apache.tools.ant.Project.runTarget(Project.java:720) > at org.apache.tools.ant.Project.executeTarget(Project.java, >Compiled >Cod >e) > at org.apache.tools.ant.Project.executeTargets(Project.java, >Compiled >Co >de) > at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code) > at org.apache.tools.ant.Main.main(Main.java:119) > >BUILD FAILED > >build.xml:18: Could not find tools.BeanBuilder. Make sure you have it in >your >cl >asspath > >Total time: 0 seconds > > >Oddly, what I _think_ is the same command from the command line works >peachy: >C:\ant_test\com\common\subject>java -classpath >c:/ant_test/tools/xml.jar;c:/ant_test tools.BeanBuilder subject.def > >Is this really a classpath problem in my buildfile, or am I >misunderstanding >something? > > >__________________________________________________ >Do You Yahoo!? >Kick off your party with Yahoo! Invites. >http://invites.yahoo.com/ ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com