2010-08-06 104 views
1

环境Grails的控制台执行错误

  • 的Grails 1.2.2
  • Ubuntu 9.10的
  • 的IntelliJ 9.0.3

一切工作正常的IntelliJ。当我在项目根目录执行“grails console”时,我得到以下内容

Error executing script Console: groovy.lang.GroovyRuntimeException: Failed to parse template script (your template may contain an error or be trying to use expressions not currently supported): startup failed, SimpleTemplateScript1.groovy: 2: illegal string body character after dollar sign;       
    solution: either escape a literal dollar sign "\$5" or bracket the value expression "${5}" @ line 2, column 10.                         
1 error  

回答

1

想通了!在脚手架目录中,文件“Controller.groovy”以某种方式在那里出现。删除这个文件解决了这个问题。获得的教训 - 在看到模板解析错误时,仔细查看模板目录。

+0

好工作@steve,救了我很多压力在这里的人! – gotomanners 2012-05-13 00:50:52