ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Weller <dgwel...@yahoo.com>
Subject Re: java task strangeness...
Date Tue, 08 Aug 2000 19:16:41 GMT
Yup, same error.  I've managed to make it work by making a call to the exec
task, rather than invoking an Ant buildfile in the target dir.  I'll dig into
the cause more once I have some spare time (LOL :-).

--- Miten Mehta <miten_s_mehta@hotmail.com> wrote:
> Hello,
> 
> did you try to set basedir to absolute path and use fork attribute for java 
> task.
> 
> 
> >From: David Weller <dgweller@yahoo.com>
> >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:
> >
> ><project name="subject" default="ejb_gen" basedir=".">
> >   <target name="ejb_gen">
> >     <echo message="    Generating Enterprise Java code ..."/>
> >     <java classname="tools.BeanBuilder" args="subject.def"
> >       classpath="c:/ant_test/tools/xml.jar;c:/ant_test/tools" />
> >   </target>
> ></project>
> >
> >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.<init>(ZipFile.java:69)
> >         at java.util.zip.ZipFile.<init>(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
> 


__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/

Mime
View raw message