Hi.
> Even stranger.
After several hours of digging, seems like I've found what the source of
the problem is. XJCTask uses ParallelWorldClassLoader which seems to
conflict with Ant's classloader.
For now, I simply disabled ParallelWorldClassLoader for 2.0:
cl = XJCTask.class.getClassLoader();
// cl = new
// ParallelWorldClassLoader(XJCTask.class.getClassLoader(),source);
driver = cl.loadClass("com.sun.tools.xjc.XJC2Task");
And it works. I don't know what exactly the conflict is and what the
whole idea behind this ParallelWorld was, but it functions now, with ant
and plugins.
Bye.
/lexi