Hello,
I tried to create a release task like that:
task release {}
release.dependsOn 'clean', 'build', 'srcWDDist', 'srcWoDDist'
and I got this result executing gradle:
$ fgradle clean
:clean UP-TO-DATE
:SRLibAppBase:clean
:SRLibDA:clean
:SRLibGui:clean
:SRServiceManager:clean
:SRSrvSample:clean
:SRStarter:clean
BUILD SUCCESSFUL
$ fgradle release
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:jar
:srcWDDist
:srcWoDDist
:assemble
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:uploadArchives
:test UP-TO-DATE
:check UP-TO-DATE
:build
:clean
:release
BUILD SUCCESSFUL
What I don't understand:
- after running clean, how could compileJava be up-to-date?
- all 4 task, that my release task depends on, have no relations to each
other, how can I specify, that "clean" should be executed before "build",
without specifiing that "build" depends on "clean"?
I can not imagine a development cycle, where clean makes sense to be executed
after the build-step. Doesn't need the tasks a priority or the like?
kind regards
Geronimo
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email