I’m trying to use the @argfile
option for the Groovy compiler as shown in the documentation. This command works to compile my application:
groovyc -cp config-1.4.2.jar HelloWorld.groovy
However, if I take everything after groovyc
and put it in a file called “args”, I get an error:
groovyc @args
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
-cp config-1.4.2.jar HelloWorld.groovy: -cp config-1.4.2.jar HelloWorld.groovy (
The system cannot find the file specified)
To simplify, I even tried just putting -v
in the args file and again, it tells me that it couldn’t find -v
.
What am I doing wrong?