How To Customize IDE's Project Generation Wizard
Step by step guide, how to customize project generation wizard using templet’s advanced-parameters.yml
.
Step 1:
Create a new template project.
Make sure that
project-creation/advanced-parameters.yml
is checked.
3. Open project-creation/advanced-parameters.yml
4. Use the following configuration to add the desired advanced parameters:
advanced-parameters:
- id: #unique parameter id must follow Java field naming convention
display-name: #will be used in IDE as parameter description
type: #Text, Number, Boolean, Enum(list of acceptable values)
enum-values:
- value 1
- value n
default: (optional) default value
required: (optional) false by default
For example:
advanced-parameters:
- id: id1
display-name: myParam
type: Enum
enum-values:
- value 1
- value n
default: value 1
required:
5. Create a project from the template.
6. After filling in the connection details, click on the Next
button and you’ll see the advanced parameters that you declared in the template.
7. The project will be created in accordance with the freemarker templates from the used Template project.