You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2014/01/04 16:42:14 UTC

[Bug 53049] Classpath entries passed to a junit task don't get received by jUnit test classes

https://issues.apache.org/bugzilla/show_bug.cgi?id=53049

Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Stefan Bodewig <bo...@apache.org> ---
the system propery java.class.path doesn't tell you anything about the
classloader that was used.  If you'd fork the junit task you'd see all you
expect.

For a non-forked execution you'll get a real answer by

        String classPath = ((org.apache.tools.ant.AntClassLoader)
DummyTest.class.getClassLoader()).getClasspath();

-- 
You are receiving this mail because:
You are the assignee for the bug.