Distinguishing Gradle test run and Eclipse test run

View: New views
2 Messages — Rating Filter:   Alert me  

Distinguishing Gradle test run and Eclipse test run

by Russel Winder-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Because of the different way the Gradle build for Gant works compared to
the Eclipse build, some of the integration tests fail in one or the
other fail just now because there needs to be a hardwired path in the
integration test set up.

So what I need is a simple way for the integration test code to know if
it is executing in Gradle or Eclipse.  I guess IntelliJ IDEA and
NetBeans will do things as Eclipse does so this is really Gradle
compared to everyone else.

The code executing is Java not Groovy, so the disambiguator needs to be
usable in Java.

Thanks.

--
Russel.
=============================================================================
Dr Russel Winder      Partner
                                            xmpp: russel@...
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:russel.winder@...
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder


signature.asc (204 bytes) Download Attachment

Parent Message unknown Re: [groovy-user] Distinguishing Gradle test run and Eclipse test run

by Russel Winder-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, 2009-10-17 at 05:52 -0700, Peter Niederwieser wrote:
> Simply set a system property (or create a file) in the Gradle build...

For Gant and Ant, the "Simply set" is easy, use the sysproperty tag in
the junit task, but how to do this in Gradle?

> Cheers,
> Peter
>
>
> Russel Winder-4 wrote:
> >
> > Because of the different way the Gradle build for Gant works compared to
> > the Eclipse build, some of the integration tests fail in one or the
> > other fail just now because there needs to be a hardwired path in the
> > integration test set up.
> >
> > So what I need is a simple way for the integration test code to know if
> > it is executing in Gradle or Eclipse.  I guess IntelliJ IDEA and
> > NetBeans will do things as Eclipse does so this is really Gradle
> > compared to everyone else.
> >
> > The code executing is Java not Groovy, so the disambiguator needs to be
> > usable in Java.
> >
> > Thanks.
> >
> > --
> > Russel.
> > =============================================================================
> > Dr Russel Winder      Partner
> >                                             xmpp: russel@...
> > Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
> > 41 Buckmaster Road,   f: +44 8700 516 084   voip:
> > sip:russel.winder@...
> > London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder
> >
> >  
> >
>
--
Russel.
=============================================================================
Dr Russel Winder      Partner
                                            xmpp: russel@...
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:russel.winder@...
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder


signature.asc (204 bytes) Download Attachment