Thank you so much from the prompt response. The task built successfully after following your instruction.
Asmita Vaidya On Mon, Jul 11, 2011 at 7:22 PM, Luke Daley <[email protected]> wrote: > > On 12/07/2011, at 3:20 AM, Asmita Vaidya wrote: > >> The gradle documentation task is complaining when I try to use the >> following ant task with Gradle 1.0-milestone-3 and newer (snapshot >> version), it was working with 0.9.2. >> I haven't tried executing the task with versions between 0.9.2 and >> 1.0-milestone-3. >> >> Here is the piece of gradle script >> >> task documentation(dependsOn: ['docs'], description: 'Create the API >> documentation.') >> task('docs') << { >> ant.taskdef(name: 'docs', classname: 'grails.doc.ant.DocPublisherTask') { >> classpath { >> configurations.compile.resolve().each { f -> >> pathelement(location: f) >> } >> } > > This should be » > > ant.taskdef(name: 'docs', classname: 'grails.doc.ant.DocPublisherTask', > classpath: configurations.compile.asPath) > >> } >> ant.docs(src: "documentation", dest: "$buildDir/docs/documentation", >> properties: "documentation/resources/doc.properties", >> styleDir: new File('documentation/style'), >> imagesDir: new File('documentation/img')) >> } >> >> When I run the "gradle documentation" task, I get this error message: >> >> Execution failed for task ':docs'. >> Cause: taskdef doesn't support the nested "pathelement" element. >> Cause: The <taskdef> type doesn't support the nested "pathelement" element. > > -- > Luke Daley > Principal Engineer, Gradleware > http://gradleware.com > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
