> As far as I can remember someone committed a fix for this exact issue a
> while ago.

Try running gradle build first. The problem is there is no build
directory and the code is trying to exclude the generated-sources in
the build folder... I wrote the problem, but don't have time right now
to write a fix.

Here's the broken code. It's using file sets, of course no build
directory means no files to work from. Probably need to figure a way
to do it via paths instead of files.

ideaModule.doFirst {
  excludeDirs -= buildDir

  def generatedDir = file("$buildDir/generated-sources")

  def buildMinusGeneratedDir = (buildDir.listFiles() - generatedDir)
as Set<File>

  excludeDirs += buildMinusGeneratedDir
}



On Fri, Jul 29, 2011 at 2:46 PM, Chris Poulsen <mailingl...@nesluop.dk> wrote:
> As far as I can remember someone committed a fix for this exact issue a
> while ago.
>
> Doing a "gradle build" before using the idea task was a work-around before
> it was fixed, is your source 100% up to date?
>
> --
> Chris
>
> On Fri, Jul 29, 2011 at 11:14 PM, Jon Williams
> <williams.jonat...@gmail.com>wrote:
>
>> I have the same problem w/"gradle idea" using Gradle 1.0-milestone-3.
>>
>> On Fri, Jul 29, 2011 at 1:51 PM, Howard Lewis Ship <hls...@gmail.com>
>> wrote:
>>
>> > I haven't tried milestone-4; I'm using milestone-3 and I think I'll
>> > stick there for a bit!
>> >
>> > On Fri, Jul 29, 2011 at 1:36 PM, Jon Williams
>> > <williams.jonat...@gmail.com> wrote:
>> > > Hi Tapestrians,
>> > >
>> > > Working with the SVN trunk I am unable to gradle the idea project into
>> > > existence.
>> > > I'm brand new to gradle, am I missing something? or is the idea task
>> > indeed
>> > > broken?
>> > > (using Gradle 1.0-milestone-4)
>> > >
>> > > thanks
>> > >
>> > > cut and paste from the terminal below
>> > > -----------------
>> > > Jon-Williamss-MacBook-Pro:tap-proj jonwilliams$ gradle idea
>> --stacktrace
>> > > ...
>> > > :tapestry-core:ideaModule
>> > >
>> > > FAILURE: Build failed with an exception.
>> > >
>> > > * Where:
>> > > Build file
>> > >
>> >
>> '/Users/jonwilliams/wrk/java/3rdParty/tap-proj/tapestry-core/build.gradle'
>> > > line: 68
>> > >
>> > > * What went wrong:
>> > > Execution failed for task ':tapestry-core:ideaModule'.
>> > > Cause: Cannot invoke method minus() on null object
>> > >
>> > > * Try:
>> > > Run with --info or --debug option to get more log output.
>> > >
>> > > * Exception is:
>> > > org.gradle.api.tasks.TaskExecutionException: Execution failed for task
>> > > ':tapestry-core:ideaModule'.
>> > >
>> >
>> >
>> >
>> > --
>> > Howard M. Lewis Ship
>> >
>> > Creator of Apache Tapestry
>> >
>> > The source for Tapestry training, mentoring and support. Contact me to
>> > learn how I can get you up and productive in Tapestry fast!
>> >
>> > (971) 678-5210
>> > http://howardlewisship.com
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> > For additional commands, e-mail: users-h...@tapestry.apache.org
>> >
>> >
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to