Shows how to update an existing doctype.
Changes to existing doctypes can also be applied to the model descriptor. Valid changes currently only includes the adding of properties and sections to doctype descriptors.
Apply Changes to Doctype Descriptor
The folder
src/main/resources/projectdoc-models/doctypes
contains all descriptors for doctypes.
Run Generation Process
The generation process for the altered doctypes, run from within the project (that is from the base folder that contains the pom.xml
file) using
mvn doctype:generate -Dmode=update
In create mode (default), already existing templates will not be overridden. but update will take care of updating doctype information.
Resources
More usage scenarios:
- Create a new Doctype Model
- Shows how users can create their own model project for their doctypes. This involves creating a new project using a Maven Archtetype and then add blueprint based on model descriptors.
- Create a new Doctype Add-on
- Shows how users can create their own add-on project for their doctypes. This involves creating a new project using a Maven Archtetype and then add blueprint based on model descriptors.
- Add new Doctype
- Shows how to add a new doctype to an existing project.
- Update Doctype
- Shows how to update an existing doctype.