Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "SMILA/Development Guidelines/Setup for JAXB code generation"
(→Steps to install needed libraries) |
(→Generating JAXB classes for a new crawler or agent configuration) |
||
Line 34: | Line 34: | ||
The JAXB classes should now be generated in the <tt>code/gen</tt> directory of your bundle. | The JAXB classes should now be generated in the <tt>code/gen</tt> directory of your bundle. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:SMILA]] | [[Category:SMILA]] |
Revision as of 05:45, 9 April 2013
Introduction
This page describes additional setup steps you need to do if you want to use JAXB to generate classes from XML schema descriptions for SMILA. This is also needed to be able to extend SMILA XML configuration file schemas, because we mostly use JAXB to parse them.
Steps to install needed libraries
- Setup a build library as described in SMILA/Development Guidelines/Howto build a SMILA-Distribution. In this document we will use lib/ as the root of it.
- The required JAXB compiler libraries are contained in our package of the SMILA build libraries. If you want to collect them on your own, use these instructions:
Your build lib directory should now look at least like this:
lib/ ant-contrib/ ant-contrib-1.0b3.jar xjc/ jaxb-api.jar jaxb-impl.jar jaxb-xjc.jar InterfacesXJCPlugin.jar
Generate Sources from Command line
- Put SMILA.builder into the same folder as the bundle for which you are generating the folder (for all SMILA bundles this is the case after a checkout).
- To generate the classes, you can now use:
ant -Dlib.dir=<SMILA-Build-Lib-Dir>
The JAXB classes should now be generated in the code/gen directory of your bundle.