*.groovy has to be different filename (problem is CF buildpack)

This commit is contained in:
Dave Syer
2014-06-13 12:22:13 +01:00
parent eff8f260f8
commit e184aa11d9
4 changed files with 3 additions and 2 deletions

View File

@@ -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)
}