buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Boisvert <alex.boisv...@gmail.com>
Subject Re: Problem using build.yaml to specify groups of dependencies
Date Fri, 11 Nov 2011 11:56:25 GMT
On Thu, Nov 10, 2011 at 7:26 PM, Russ Teabeault <rteabeault@rallydev.com>wrote:

> I am trying to use buildr.yaml to specify my dependencies
>
> artifacts:
>  compile:
>    - ant:ant:jar:1.6.5
>    - ant-contrib:ant-contrib:jar:1.0b2
>    - ...
>
> Based on everything I have read I should then be able to do
>
> compile.with artifact_ns[:compile]
>
> However, this fails in the artifacts method of artifact.rb since each spec
> in the array is an ArtifactRequirement and there is no case handling that
> type.
>
> Is this a bug?  Is there a better way to do this?  What are other people
> doing?
>

Yes, that is a bug.  artifacts() doesn't correctly handle objects that
ActsLikeArtifact. Will be fixed in trunk in a few minutes.

In the mean time or for previous versions, you can write,

compile.with artifact_ns.compile.map(&:artifact)

instead.

alex

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message