Fixed in CVS - try a recent nightly build
> -----Original Message-----
> From: BAKER Anthony [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 25 May 2001 3:35 AM
> To: '[EMAIL PROTECTED]'
> Subject: ant Classloader problem
>
>
> Hi,
>
> I believe I am running into a problem with the ant classloader.
> When I run
> either a <junit> or non-forked <java> task, getResource() always returns
> null:
>
> URL file = Logger.class.getResource("/" + LOG_CONFIG);
>
> If I fork a jvm and the same code (same classpathref) is
> executed, it works!
> Here is the target:
>
> <target name="junit" depends="compile">
> <!-- this works -->
> <java classname="some.pkg.AllTests" classpathref="classpath"
> fork="yes" />
>
> <!-- this doesn't work
> <java classname="some.pkg.AllTests" classpathref="classpath" /> -->
>
> <!-- this doesn't work
> <junit>
> <classpath refid="classpath" />
> <formatter type="plain" usefile="no" />
> <test name="some.pkg.SomeTest" />
> </junit> -->
> </target>
>
>
> Any ideas? Thanks!
>
> -----
> Anthony Baker, [EMAIL PROTECTED]
> 503.748.8197
>