> The one thing that was rather awkward was getting the classpath used by the
> compile and testCompile tasks respectively. After going through the source I
> ended up with the following call:
> List classpath =
> GUtil.addLists(<task>.classpathConverter.createFileClasspath(project.rootDir,
> <task>.unmanagedClasspath),compile.dependencyManager.resolveTask(<task>.name)
> )
Hans suggested:
classpath: dependencies.antpath("compile")
You can do the same for the "testCompile" configuration too. The
".antpath()" method seems to return a path string, so you can use it
in the equivalent of Ant's <classpath path="..."/> element.
Hope that helps,
Peter
--
Software Engineer
G2One, Inc.
http://www.g2one.com/
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email