How to generate code from a project template

To generate code from a project template use DVT Project From Template Wizard from menu File > New > DVT Project From Template then follow the steps:

  1. Specify Template Directory and Target Directory

  2. Specify Parameters

Step 1. Specify Directories

Specify the template directory (You can also choose from Predefined Projects) and the destination directory where the code will be generated.

../../_images/project-templates-wizard-1.png

Step 2. Specify Parameters

DVT automatically recognizes the parameters by scanning the template directory recursively.

If default values are specified in the Template Configuration file, they are automatically filled in.

You can edit values as needed. You may restore to defaults as well.

If the template directory was developed using DVT and configured as a project (it includes .project and .dvt files) you may chose to inherit its settings (default.build etc.).

../../_images/project-templates-wizard-2.png