Those
kind of things are very hard to diagnose, especially over e-mail. Since scomp
works correctly, I have to assume that this is ant's doing, maybe some
dependency checking causing some classes not to get
rebuilt?
Radu
-----Original Message-----Hi All,
From: rabidgremlin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 18, 2005 3:26 PM
To: [email protected]
Subject: Ant task generating bad code
I have an ant build script which generates my XmlBeans .jar file. Whilst using this .jar I kept tripping up ClassCastExceptions when calling the newInstance() or methods on one of my objects.
However if I run scomp to generate my .jar file then the ClassCastExceptions go away.
For the moment I have just launched the scomp (SchemaCompiler) class using a <java> task in my ant script but I am curious as why the xmlbeans task does not work.
Jonathan

