ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maciej Zywno <>
Subject why MyClass.class.getPackage returns null when ant classloader is used?
Date Thu, 10 Mar 2005 09:22:20 GMT
Hi all,

I've come across strange error in my app. The error is connected
probably with ant classloader and appears while the following piece of
code in my application is run from junit (triggered by ant triggered
by maven):


returns null, although the name of the class is sth like
''. When junit is run from eclipse a package is
found i.e. it is not null. However when run from eclipse, Sun
classloader is used.

I heard that the problem may be with non-delegating ant class loader,
but could not fix it so far. Could you help?


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

View raw message