You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no way to elegantly define default value for e.g projectGroup. Consider new DSL:
fork {
config {
cloneFiles()
moveFiles([
"/com/company/x/example": "/{{projectGroup|substitute('.', '/')}}/{{projectName}}",
"/example": "/{{projectName}}"
])
replaceContents([
"com.company.x.example": "{{projectGroup}}.{{projectName}}",
'com.company.x': "{{projectGroup}}",
"Example": "{{projectLabel}}",
"example": "{{projectName}}",
])
defineProperties([
property "projectGroup", "com.company.x"
property "projectLabel", "Example",
property "projectName", "example"
/* below mostly expected :)
property "projectName", {
defaultValue = "example"
validator = { !it.value('projectGroup').contains(it.value)) }
}
*/
property "libVersion", { // that property will be used in some template file, not in above sections directly
defaultValue = "1.0.0"
radio ['1.0.0', '2.00', '3.0.0''] // GUI control type 'radio' instead of default 'textfield'
required()
}
])
}
}
The text was updated successfully, but these errors were encountered:
pun-ky
changed the title
Ability to define default values for vars defined multiple times
Ability to define default values for properties defined multiple times
May 23, 2018
consider implementing more nice GUI controls when providing capability to define type of placeholder, validator, default value and possible options (e.g for radio)
There is no way to elegantly define default value for e.g
projectGroup
. Consider new DSL:The text was updated successfully, but these errors were encountered: