First, you need to edit your module's paths (in IDEA) to override the project
defaults, and to use build/classes/main and build/classes/test
Secondly, I'm not sure why the test compile would fail. Is everything in the
same project (tests + source), or are they in different projects? Check your
idea settings after running gradle ideaModule, are test sources marked
correctly?
On Aug 24, 2011, at 9:22 AM, Russel Winder wrote:
> Experimenting more with the Gradle facilities for generating Eclipse and
> IntelliJIDEA files -- the whole concept is extremely splendid :-)
>
> Current focus of effort is a pure Java project as a proving ground for
> ideas to apply to the GPars project build.
>
> Problem of the moment: Generating IntelliJIDEA project files using no
> added "idea { . . . }" extras leads to an IntelliJIDEA project that
> fails to build. It seems that all the project code is compiled to the
> out/production directory, all the test files compiled to out/debug and
> the test compile does not include the production compile results in the
> classpath. Thus I get successful classes compile and total failure of
> the testClasses compile in IntelliJIDEA. Using command line everything
> works fine. Moreover the Eclipse project work fine as well.
>
> Does this mean that I have something getting in the way of the defaults
> doing the right thing, or is there a problem in the Gradle idea plugin?
>
> Thanks.
>
> --
> Russel.
> =============================================================================
> Dr Russel Winder t: +44 20 7585 2200 voip: sip:[email protected]
> 41 Buckmaster Road m: +44 7770 465 077 xmpp: [email protected]
> London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email