The following settings are listed:
configurations.compile.asPath
If you have defined your own configuration, you can also use it:
configurations {
gwtCompile
}
....
ant.java (classname: 'com.google.gwt.dev.Compiler', fork: 'true', failOnError: 'true') {
jvmarg (value: '-Xmx184M')
arg (line: '-war' + gwtBuildDir)
arg (value: 'com.yoobits.ocs.WebApp')
classpath {
pathElement (location: srcRootName + '/' + srcDirNames [0])
pathElement (path: configurations.compile.asPath)
pathElement (path: configurations.gwtCompile.asPath)
}
}
In the above example, I got access to the compilation path and to my own configuration, which is interesting only during the special phase during compilation of the assembly using the GWT compiler.
source share