|
I am not sure when this was fixed but the following works for me now:
<project name="groovy-1019" default="run"> <path id="taskdef.path"> <path path="C:/Downloads/groovy.codehaus.org/groovy-1.1-rc-1/embeddable/groovy-all-1.1-rc-1.jar"/> <path path="C:/Downloads/groovy.codehaus.org/groovy-1.1-rc-1/lib/commons-cli-1.0.jar"/> </path> <taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc" classpathref="taskdef.path"/> <path id="compile.path"> <fileset dir="./groovy-1019/lib" /> </path> <target name="run"> <groovyc destdir="." srcdir="./groovy-1019/src" listfiles="true" stacktrace="false"> <classpath refid="compile.path"/> </groovyc> </target> </project> Where in src is a single groovy file requiring commons lang and in lib is just the commons lang jar. |
|||||||||||||||||||||||||||||||||||||||||||||||||
<groovyc destdir="${build}" srcdir="${groovy-src}" listfiles="true" stacktrace="false">
<classpath refid="run.path"/>
</groovyc>
Could you provide more details to see if it is possible to resolve this. Try adding stacktrace="true" and see if that helps us get the necessary details to understand why your thing didn't work. Also, if you have a simple example that allows reproduction.
BTW: this issue does not include a junit test case as claimed. Maybe you forgot to add it.