Hani, Thanks for chipping in on this.
On Wed, 2011-08-24 at 14:20 +0000, Hani Suleiman wrote: > 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 Uuurrrr.... If I have to edit anything in IntelliJIDEA after having run "gradle idea" just to get a compile and test to run for a project that compiles and tests perfectly from the command line using "gradle test", then I would say that the "gradle idea" has failed dismally. Of course, I think what you are trying to indicate is how to get IntelliJIDEA and Gradle command line to use the same compilation products area. Having tried this with various other tools over the years, I have come to the conclusion that it is always wise to keep all compilers of any and all IDEs or command line tools completely and totally separate. To do anything else invariably leads to pain. Then anger. Then hate. Then suffering. > 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? The project structure is completely Gradle/Maven standard. As far as I can tell all the source/test markup is correct -- all the directories appear to have the correct colouring (or coloring if you live on the left-hand side of the pond :-). I have to admit I have no experience of single module per project use of IntelliJIDEA -- to be honest I have little real experience of using IntelliJIDEA (*) -- previously I have always has separate modules for main source and test code. But as this was always manually constructed, it doesn't really apply here where the Gradle spec is being used to drive the IntelliJIDEA project spec. Thanks. (*) IntelliJIDEA on Gnome/Linux looks poor (especially compared to Eclipse and NetBeans) and behaves weirdly, often ignoring my theme even though I have set GTK theme as the theme. It is going to take a lot of convincing to get me to use IntelliJIDEA on a day to day basis given it looks and behaves so poorly. -- 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
signature.asc
Description: This is a digitally signed message part
