On Thu, Nov 27, 2008 at 10:00 AM, Timo Rantalaiho <[EMAIL PROTECTED]>wrote:

> But I'm unsure of when does Buildr determine whether or not
> to start downloading.
>
> First I tried hooking into the downloading code in
> artifact.rb, but it never gets that far when the snapshot
> jar already exists in the local maven repo. Then I run
> buildr artifacts --trace which was showing "not_needed" and
> found a neeeded? method in packaging.rb, but that doesn't
> seem to get called neither when the snapshot jar is already
> present.
>
> Any hints are much appreciated!
>

The Artifact#initialize function defined on artifact.rb has a File.exist?
validation at line 313
if the artifact doesnt exist, the download method is called. Note that the
block given to
task.enhance is executed once the artifact task is invoked:
artifact("arti:fact:1.0:jar").invoke
which is done by rake for any task depending on an artifact.

Reply via email to