ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Christmann" <>
Subject 1.5 b2 and JUnit
Date Thu, 13 Jun 2002 20:57:54 GMT

I just upgraded from 1.5alpha (built from CVS in mid-April) to the 1.5b2
release (downloaded the binary distribution).

When I did this, my unit test target stopped working -- all unit tests
reported the following exception:

    [junit] java.lang.VerifyError: (class:
ream, method: <init> signature:
    [junit] 	at
    [junit] 	at
    [junit] Exception in thread "main" 

To explore further, I downloaded the source 1.5b2 distribution, and
looked into the JUnitTestRunner code.  I found what appeared to be the
problem lines (the only uses of TeeOutputStream) which were inside a "if
(forked)" test.  So, I re-tested with the fork parameter set to "no",
and it worked -- at least the unit tests worked, though the overall
process didn't since I want to have the fork attribute set to "yes".

So I rebuilt 1.5b2 to try hacking some stuff into JUnitTestRunner to try
and further isolate the cause -- and much to my surprise, a rebuilt
version of optional.jar did the trick.  I noticed that both ant.jar and
optional.jar that were built from the source distribution were different
sizes than those provided with the binary distribution (though they
appeared to have identical manifest files), so I am now using both jars
built from the source distribution.

Long way of saying -- everythings working fine now, but I'm concerned
that I had to rebuild the binaries from the release source.  Is this a
known issue?  Is it an issue, or did I install the binary improperly?

Thanks for any help,



If it matters, here's the junit task from my build.xml:

    <junit printsummary="yes" showoutput="yes" dir="${test.conf.dir}"
        <path refid="test.class.path"/>
      <formatter type="plain"/>
      <batchtest todir="${build.reports}">
        <fileset dir="${}">
          <include name="**/*"/>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message