Hi,

I'm trying to understand how skipping tasks works in a multi project
build scenario.

In the Grails build I have defined two tasks to create the source and
javadoc distributions like so

    task sourcesJar(type: Jar, dependsOn:classes) {
        classifier = 'sources'
        appendix = project.name[7..-1]
        from sourceSets.main.allSource
    }

    task javadocJar(type: Jar, dependsOn:javadoc) {
        classifier = 'javadoc'
        appendix = project.name[7..-1]
        from javadoc.destinationDir
    }

However this has added significant time to build each subproject since
the source and javadoc jars are built too

Is there a way to skip subproject tasks? I have tried:

gradle -x javadocJar -x sourcesJar assemble

I have also tried:

gradle -x *:javadocJar -x *:sourcesJar assemble

But nothing seems to get skipped

Thoughts?

-- 
Graeme Rocher
Grails Project Lead
SpringSource - A Division of VMware
http://www.springsource.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to