I'm having trouble getting something that seems very simple with Grails. I want to call the grails commands from an Ant script - Grails does the Grails task to achieve this. I defined Grails tasks taskdef and classpaths according to the docs, however, no matter which command I call, I get the same error ...
grails-compile:
[grails] Resolving dependencies...
[grails] Dependencies resolved in 1192ms.
BUILD FAILED
/java/grailstest/build.xml:22: Unable to start Grails: java.lang.reflect.InvocationTargetException
Even when I create a new Grails application using "grails create-app" and then run the Ant command "grails integrate-with - ant" to generate the default build.xml, I get the same when I run any of the tasks in the generated file build.xml.
I tested this with Grails 1.3.1, 1.3.4 and 1.3.5 and get the same error.
Has anyone else encountered this problem? It must be something stupid I'm doing wrong, or it would never have done it outside the door of the Grails factory ...;)
source
share