Hi Russel,

On Oct 23, 2008, at 9:49 AM, Russel Winder wrote:

I have a mild difficulty somewhere, but it strikes me that there should
be a way to action a clean without having to build anything first?

the Gradle build uses build sources. This concept is explained here: http://gradle.org/userguide/latest/masterch15.html#x51-13200015.1

Build sources are build and the binaries are added to the classpath of the build script. Those binaries are needed for compiling the build script. And only then Gradle can figure out if a clean task is defined. What we plan to do is to cache the build sources (http:// jira.codehaus.org/browse/GRADLE-145). They usually change not that often.

- Hans


|> gradle clean
================================================ Start building buildSrc
Executing Task: :clean
Executing Task: :init
Executing Task: :resources
Executing Task: :compile
Executing Task: :testResources
Executing Task: :testCompile
Executing Task: :test
[ant:junit] Test org.gradle.build.release.VersionTest FAILED

Build failed with an exception.
Run with -s or -d option to get more details. Run with -f option to get
the full (very verbose) stacktrace.

Build file
'/home_dimen/users/russel/Repositories/Bazaar/Subversion_Branches/ GradleCore_Trunk/AntTask/buildSrc/build.gradle'

Execution failed for task :test.
Cause: There were failing tests. See the report
at /home_dimen/users/russel/Repositories/Bazaar/Subversion_Branches/ GradleCore_Trunk/AntTask/buildSrc/build/reports/tests.

BUILD FAILED

Total time: 7.893 secs

--
Russel.
====================================================
Dr Russel Winder                 Partner

Concertant LLP                   t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,              f: +44 8700 516 084
London SW11 1EN, UK.             m: +44 7770 465 077

--
Hans Dockter
Gradle Project lead
http://www.gradle.org





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

   http://xircles.codehaus.org/manage_email


Reply via email to