townsfolk / gradle-templates

A gradle project templates plugin
Apache License 2.0
315 stars 99 forks source link

PromptOptions display prompt twice #20

Closed polopi closed 9 years ago

polopi commented 9 years ago

The issue comes from there in src/main/groovy/templates/TemplatesPlugin.groovy

String consoleMessage = "${inputPrompt} ${message}"

And then when calling readLine(String message, def defaultValue = null) with previous consoleMessage

String _message = "$inputPrompt $message " + (defaultValue ? "[$defaultValue] " : "")