2014-01-14 68 views
2

我想在grails中运行黄瓜。我收到以下错误。无法在grails中运行黄瓜

 
Error | 
Error loading event script from file [C:\Users\target\work\plugins\cucumber-0.9.0\scripts\_Events.groovy] No such property: ant 
for class: _GrailsSettings (Use --stacktrace to see the full trace) 
..................................................................... 
|Server stopped 
Error | 
Fatal error running tests: taskdef class org.codehaus.groovy.grails.compiler.Gra 
ilsc cannot be found 
using the classloader AntClassLoader[] (Use --stacktrace to see the full trace) 

.Tests FAILED 
| 
- view reports in C:\Users\target\test-reports 
Error | 
Error running forked test-app: taskdef class org.codehaus.groovy.grails.compiler 
.Grailsc cannot be found 
using the classloader AntClassLoader[] (Use --stacktrace to see the full trace) 

| Error Forked Grails VM exited with error 

什么可能导致这一点,我该如何解决呢?

+0

您可以使用详细模式运行应用程序吗?由于上述日志不是很详细。 在grails命令中:run-app --verbose并在这里提供详细的日志。问候, –

+0

其实我运行这个使用命令“grails test-app”在grails 2.3.4 – user3194761

回答

4

最后我找到了它,因为我使用的Grails 2.3.x版本在这方面我们已付出执行,其中黄瓜插件不工作,所以删除grails.project.fork = []形式buidconfig.groovy这样,就可以