On 26/12/09 6:51 PM, tbee wrote:


tbee wrote:

Oops. Too quick. I had my script for test call uploadArchives and forgot
to change that back. Time to start digging into the uncommented sources of
Gradle


It turns out that configuration is null in UploadTask.

     private Configuration configuration;
     ...
         logger.info("Publishing configurations: " + configuration);
         configuration.publish(repositories.getResolvers(), ...

This is a perfect example of what goes wrong with wrapping my head around
Gradle. The task has a setConfiguration. In ANT you know that you either
have to set such properties in the ANT task instance, and if you didn't you
get a correct exception telling you exactly what you have failed to set, or
the property is set by ANT. I would have assumed the last for
"configuration".

Most task properties do have validation, and you get an error message telling you that you haven't provided a value for some required property. We've missed a few, and UploadTask.configuration looks like one of them. Could you add a JIRA issue for this?


--
Adam Murdoch
Gradle Developer
http://www.gradle.org


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

   http://xircles.codehaus.org/manage_email


Reply via email to