On Thu, Nov 10, 2011 at 7:26 PM, Russ Teabeault <[email protected]>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
