Thankyou for the prompt reply!
On Thu, 27 Nov 2008, Victor Hugo Borja wrote:
> 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.
This is what I thought initially, but as far as I can tell,
it doesn't get even that far if the artifact already exists.
There must be some other check somewhere before that.
I added info "Hello world" to that place to see if it's invoked
or not
task.enhance do
info "Hello world"
unless File.exist?(name)
info "Downloading #{to_spec}"
download
pom.invoke rescue nil if pom && pom != self
end
end
and it's not, here's the output
[EMAIL PROTECTED]:~/work/leiri333/trunk$ ~/work/buildr/trunk/_buildr artifacts
(in /home/work/leiri333/trunk, development)
Completed in 0.007s
But if I delete some dependencies from the local maven repo,
it goes there and outputs the debug output for each _missing_
artifact.
[EMAIL PROTECTED]:~/work/leiri333/trunk$ ~/work/buildr/trunk/_buildr artifacts
(in /home/work/leiri333/trunk, development)
Hello world
Downloading org.jdave:jdave-wicket-webdriver:jar:1.1-SNAPSHOT
getaddrinfo: Name or service not known
Downloading
http://www.laughingpanda.org/maven2/snapshots/org/jdave/jdave-wicket-webdriver/1.1-SNAPSHOT/jdave-wicket-webdriver-1.1-SNAPSHOT.jar
jdave-wicket-w..: 100% |.......................| 32.4KB/32.4KB Time: 00:00:00
mkdir -p
/home/thrantal/.m2/repository/org/jdave/jdave-wicket-webdriver/1.1-SNAPSHOT
Hello world
Downloading org.jdave:jdave-wicket-webdriver:pom:1.1-SNAPSHOT
getaddrinfo: Name or service not known
Downloading
http://www.laughingpanda.org/maven2/snapshots/org/jdave/jdave-wicket-webdriver/1.1-SNAPSHOT/jdave-wicket-webdriver-1.1-SNAPSHOT.pom
jdave-wicket-w..: 100% |........................| 3.2KB/3.2KB Time: 00:00:00
mkdir -p
/home/thrantal/.m2/repository/org/jdave/jdave-wicket-webdriver/1.1-SNAPSHOT
Completed in 0.280s
Best wishes,
Timo
--
Timo Rantalaiho
Reaktor Innovations Oy <URL: http://www.ri.fi/ >