File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes Exploding Generated java files with XJC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Exploding Generated java files with XJC" Watch "Exploding Generated java files with XJC" New topic
Author

Exploding Generated java files with XJC

Philippe Desrosiers
Ranch Hand

Joined: Mar 29, 2006
Posts: 138
Using the JAXB xjc Ant task, I can generate Java classes from a set of schemas. But complex types are defined as public static classes, within the "parent" class that uses them (if that makes any sense).

Is there some way to tell the XJC task to "explode" these types out to a separate, public class file? I've checked the docs, but can't find any option for this.
 
wood burning stoves
 
subject: Exploding Generated java files with XJC