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: Why are test dependencies added to runtime dependencies
Date Mon, 17 Jan 2011 04:20:21 GMT
I thought it would be a better default.   Test dependencies usually
include addional dependencies to run the software (i.e., compile
against inteface, run against implementation.)  A concrete example
would be compiling against SLF4J and running against Log4J.

alex

On Saturday, January 15, 2011, John Shahid <jvshahid@gmail.com> wrote:
> Hey all,
>
> I came across lines 174-177 in lib/buildr/run.rb
>
>     after_define(:run => :test) do |project|
>       project.run.with project.test.compile.dependencies
>       project.run.with project.test.compile.target if project.test.compile.target
>     end
>
> My question is why are the dependencies used in compiling the tests added to the run
task ?
>

Mime
View raw message