ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Weller <dgwel...@yahoo.com>
Subject java task strangeness...
Date Tue, 08 Aug 2000 17:53:48 GMT
(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/

Mime
View raw message