On 30/08/10 11:28 PM, tinca wrote:
Hello,A custom task that uses ant task works fine with 0.9-preview-3. In rc-1 it fails: Execution failed for task ':serviceJar'. Cause: taskdef class org.jini.rio.tools.ant.ClassDepAndJarTask cannot be found lib dependency defines: compile module('rioproject:rio:4.0') { dependency(':rio:4.0') { artifact { name = 'classdepandjar'; type = 'jar' } .... Its usage is: task serviceJar<< { ant.taskdef( name: "classdepandjar", classname: "org.jini.rio.tools.ant.ClassDepAndJarTask", classpath: configurations.compile.asPath + ':' + compileJava.destinationDir+ ':' + compileTestJava.destinationDir) ant.classdepandjar( ... Release info mentions nothing on this: http://gradle.1045684.n5.nabble.com/ANN-Gradle-0-9-rc-1-released-td2263741.html If the lib containing ClassDepAndJarTask is put under testRuntime an other error appears, that reports missing classes which otherwise present in compileJava.destinationDir. Any idea how to solve this?
You might start by confirming that the expected library jars are in the classpath you specify for the taskdef. Perhaps you could print out configurations.compile.asPath just before the taskdef.
-- Adam Murdoch Gradle Developer http://www.gradle.org CTO, Gradle Inc. - Gradle Training, Support, Consulting http://www.gradle.biz --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
