You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by Nicolas Modrzyk <he...@gmail.com> on 2008/02/19 02:34:15 UTC
retrieving ant properties
hello hello,
I have an ant task setting a property in Buildr, and I would like to
retrieve it.
You have any sample code I could look at to do that ?
Thanks!
Niko,
Re: retrieving ant properties
Posted by Nicolas Modrzyk <he...@gmail.com>.
I've just create the JIRA task:
https://issues.apache.org/jira/browse/BUILDR-53
Let me know if something is missing.
Niko,
On 2/26/08, Victor Hugo Borja <vi...@gmail.com> wrote:
> Nicolas,
>
> On Sun, Feb 24, 2008 at 8:03 PM, Nicolas Modrzyk <he...@gmail.com>
> wrote:
>
>
> > I have written a buildr task that can integrates easyb
> > (http://www.easyb.org/) and corbertura
> > (http://cobertura.sourceforge.net/).
> > The task can be found there:
> > http://tempo.intalio.org/tempo/trunk/tasks/easyb.rb
> >
> > Then you can run RSpec-like scenario on java code, similar to this:
> >
> > http://tempo.intalio.org/tempo/trunk/wds-service/src/test/stories/jpaStory.groovy
> >
>
>
> Cool, thanks for implementing.
> Currently we are adding BDD capabilities for many languages on buildr, glad
> you can help us with groovy's.
>
>
>
> >
> > Maybe we can contribute this to buildr directly ?
> >
>
>
> Sure, could you please create a JIRA issue and grant ASF license to use
> integrate your code.
>
>
> --
> vic
>
> Quaerendo invenietis.
>
Re: retrieving ant properties
Posted by Victor Hugo Borja <vi...@gmail.com>.
Nicolas,
On Sun, Feb 24, 2008 at 8:03 PM, Nicolas Modrzyk <he...@gmail.com>
wrote:
> I have written a buildr task that can integrates easyb
> (http://www.easyb.org/) and corbertura
> (http://cobertura.sourceforge.net/).
> The task can be found there:
> http://tempo.intalio.org/tempo/trunk/tasks/easyb.rb
>
> Then you can run RSpec-like scenario on java code, similar to this:
>
> http://tempo.intalio.org/tempo/trunk/wds-service/src/test/stories/jpaStory.groovy
>
Cool, thanks for implementing.
Currently we are adding BDD capabilities for many languages on buildr, glad
you can help us with groovy's.
>
> Maybe we can contribute this to buildr directly ?
>
Sure, could you please create a JIRA issue and grant ASF license to use
integrate your code.
--
vic
Quaerendo invenietis.
Re: retrieving ant properties
Posted by Nicolas Modrzyk <he...@gmail.com>.
Thanks assaf.
I have written a buildr task that can integrates easyb
(http://www.easyb.org/) and corbertura
(http://cobertura.sourceforge.net/).
The task can be found there:
http://tempo.intalio.org/tempo/trunk/tasks/easyb.rb
Then you can run RSpec-like scenario on java code, similar to this:
http://tempo.intalio.org/tempo/trunk/wds-service/src/test/stories/jpaStory.groovy
and get the usual cobertura coverage report.
You can run it with:
buildr easyb:cobertura
or integrate it in the Buildfile.
Maybe we can contribute this to buildr directly ?
Niko,
On 2/19/08, Assaf Arkin <ar...@intalio.com> wrote:
> On 2/18/08, Nicolas Modrzyk <he...@gmail.com> wrote:
> >
> > hello hello,
> >
> > I have an ant task setting a property in Buildr, and I would like to
> > retrieve it.
> > You have any sample code I could look at to do that ?
>
>
>
> We do that to determine if any test cases failed, with:
>
> Buildr.ant('junit') do |ant|
> . . .
> ant.project.getProperty('failed')
> . . .
> end
>
> Assaf
>
> Thanks!
> >
> > Niko,
> >
>
Re: retrieving ant properties
Posted by Assaf Arkin <ar...@intalio.com>.
On 2/18/08, Nicolas Modrzyk <he...@gmail.com> wrote:
>
> hello hello,
>
> I have an ant task setting a property in Buildr, and I would like to
> retrieve it.
> You have any sample code I could look at to do that ?
We do that to determine if any test cases failed, with:
Buildr.ant('junit') do |ant|
. . .
ant.project.getProperty('failed')
. . .
end
Assaf
Thanks!
>
> Niko,
>