Hi Graeme,

Am 28.02.11 16:33, schrieb Graeme Rocher:
> 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 tried the above command line and it works fine for me. It skips every
subproject task named javadocJar and sourcesJar. which gradle version do
you use. I tried it with the gradle wrapper and gradle version
1.0-milestone-.

regards,
René

-- 
------------------------------------
Rene Groeschke

[email protected]
http://www.breskeby.com
http://twitter.com/breskeby
------------------------------------


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

    http://xircles.codehaus.org/manage_email


Reply via email to