Project Templates in the DVT Eclipse IDE - How to Use Templates
Description
This video shows how to use a Project Template to generate an entire project or add new components to an existing one.
Explore the design and verification tools: https://www.dvteclipse.com
Or request a license: https://www.dvteclipse.com/request-license
Transcript
Introduction
When you start working on a new design or verification component, DVT can easily generate your entire project structure from a template, including the directory layout, the skeleton of your source code, configuration files, run scripts, and so on.
Generating a New Project from a Template
To generate a new project from a template:
- Go to File -> New -> DVT Project from Template.
- Fill in the location of your project template or pick one of the predefined templates and choose a target directory.
- DVT recursively scans the template for parameters in all directory and file names, as well as the content of all text files.
- Fill in the replacement value for each template parameter and click Finish.
- A new directory is created in the target folder containing the entire template structure with all parameter substitutions performed, notice that the replacement engine preserves capitalization.
Adding Components from a Template to Your Project
If you wish to add more components from a template to your project:
- Right-click on the project and go to New -> DVT Add from Project Template.
- If your project was generated from a template, its path is automatically filled in.
- Select the files and directories you wish to generate and fill in the template parameters, you may also choose from previously entered values.
Note: You are not bound to use only the template from which you originally generated the project, you can actually point to any parameterized file system tree.
Note: The template should contain Task Tags embedded inside comments to guide you through the sections of code that should be filled in or modified.