buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <pe...@realityforge.org>
Subject Re: Problem using build.yaml to specify groups of dependencies
Date Thu, 10 Nov 2011 21:45:07 GMT
Hi,

On Fri, Nov 11, 2011 at 5:26 AM, 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?

I don't think you can do this ... or at least I have never been able
to do this but it is a feature I have often desired ;)

The way I end up doing it is

> artifacts:
>  ant: ant:ant:jar:1.6.5
>  ant_contrib: ant-contrib:ant-contrib:jar:1.0b2

compile.with :ant,  :ant_contrib

-- 
Cheers,

Peter Donald

Mime
View raw message