buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Boisvert <>
Subject Re: How to add a debug switch similar to test=no
Date Thu, 19 Nov 2009 17:18:26 GMT
Buildr automatically binds any variable assignment from the command-line
into environment variables. For example,

buildr foo=bar

means the environment variable "foo" is set to "bar" and you can use it in
your buildfile as such:

if ENV['foo']
  test.using :java_args => "..."


On Thu, Nov 19, 2009 at 8:05 AM, Babu Naidu <> wrote:

> Hi,
> I want to run my tests in debug mode by having  test.using :java_args =>
> %w(-Xdebug -Xrunjdwp:transport=dt_socket,
> server=y,suspend=y,address=8453 -Xms128m -Xmx256m) in my project. This is
> well and good, however this enables tests to run in debug mode all the
> time.
> How do I add a switch similar to test=no (that we pass on command line to
> shutoff tests execution), for example debug=true, so that I can run my
> tests
> in debug mode with that switch?
> Thanks
> Babu

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