I've got a small test script in grails, but I do not manage to run it.
The script looks like this.
scripts/Test.groovy
includeTargets << grailsScript("_GrailsInit")
target(test: "The description of the script goes here!") {
// TODO: Implement script here
println("test")
}
setDefaultTarget(test)
I run it by the following grails command
run-script --stacktrace scripts/Test.groovy
This is what I see in my grails shell:
Loading Grails 2.3.5
|Environment set to development
.............................................................................................Error |
Error loading plugin manager: TomcatGrailsPlugin (Use --stacktrace to see the full trace)
...
.Error
|
org.codehaus.groovy.grails.cli.ScriptExitException
Error |
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
Error |
How can I work around my problem or solve my problem, to run the script successfully.
