mirror of
https://gitee.com/dcren/initializr.git
synced 2026-02-25 21:22:58 +08:00
*.groovy has to be different filename (problem is CF buildpack)
This commit is contained in:
@@ -150,8 +150,9 @@ class MainController {
|
||||
|
||||
}
|
||||
|
||||
def write(File src, String name, def model) {
|
||||
def body = template name, model
|
||||
def write(File src, String name, def model) {
|
||||
String tmpl = name.endsWith('.groovy') ? name + '.tmpl' : name
|
||||
def body = template tmpl, model
|
||||
new File(src, name).write(body)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user