| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Using the Ant task for the Castor XML schema generator
Documentation Author(s): Castor XML schema generator Ant task Configuration Example Castor XML schema generator Ant taskAn alternative to using the command line as shown in the previous section, the Castor XML schema generator Ant task can be used to call the XML schema generator for XML schema generation. The only requirement is that the castor-<version>-anttasks.jar must be on the CLASSPATH. ConfigurationPlease find below the complete list of parameters that can be set on the Castor XML schema generator.
Alternatively to specifying the file property, it is possible to work with a nested <FileSet> element or with the dir property. ExampleBelow is an example of how to use this task from within an Ant target definition named 'castor:schema:gen':
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||