Generating XML facade using ANT
This recipe explains how to generate XML facade with the use of the Apache ANT utility. We use the ANT scripts when we want to build or rebuild the XML facade in many iterations, for example, every time during nightly builds. Using ANT to build XML façade is very useful when XML definition changes are constantly in phases of development. With ANT, we can ensure continuous synchronization between XML and generated Java code.
The official ANT homepage along with detailed information on how to use it can be found at the following URL: http://ant.apache.org/.
Getting ready
By completing our previous recipe, we built up a JDeveloper project ready to create XML facade out of XML schema. To complete this recipe, we need to add ANT project technology to the project. We achieve this through the Project Properties dialog:
How to do it...
Here are the steps we need to take to create a project in JDeveloper for building XML façade with ANT:
- Create a new ANT build...