buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Smith <>
Subject Re: New buildr user questions
Date Wed, 10 Feb 2010 14:34:53 GMT
On Tue, 2010-02-09 at 22:02 -0800, Alexis Midon wrote:
> An artifact is (Rake) FileTask, its name is the path to the jar in your
> maven repository.
> And the method Task#to_s returns the name of the task. So what you're
> looking for is Artifact#to_s
> So to copy the jar, you can do:
> cp artifact('...').to_s dest
> Note that the artifact must have been installed first.

Thank you so much. That was the missing piece. It would be great if the
documentation mentioned that, but even better if artifact had a #path or
at least #name method. For that matter, why doesn't FileTask already
have that?

I will create a jira ticket for this.


View raw message