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.

Kevin


Reply via email to