Is this an internal Gradle problem

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Is this an internal Gradle problem

Russel Winder-2
I haven't build ADS using Gradle for a while so I just tried.  Clearly
there is something wrong, either a breaking change that I haven't
tracked in the build,gradle or a problem in Gradle.  I suspect the
former but the message doesn't give me much to go on :-(
       
        :compileJava
       
        FAILURE: Build failed with an exception.
       
        * Where:
        Build file '/home/users/russel/Repositories/Bazaar/Masters/ADS/build.gradle'
       
        * What went wrong:
        Execution failed for task ':compileJava'.
        Cause: org.gradle.api.tasks.util.FileSet cannot be cast to groovy.lang.GroovyObject
       
        * Try:
        Run with -S option to get the full (very verbose) stacktrace.
       
        * Exception is:
        org.gradle.api.GradleScriptException: Build file '/home/users/russel/Repositories/Bazaar/Masters/ADS/build.gradle'
        Execution failed for task ':compileJava'.
        at org.gradle.api.internal.tasks.DefaultTaskExecuter.executeActions(DefaultTaskExecuter.java:64) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.api.internal.tasks.DefaultTaskExecuter.execute(DefaultTaskExecuter.java:43) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.api.internal.project.ExecutionShortCircuitTaskExecuter.execute(ExecutionShortCircuitTaskExecuter.java:56) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.api.internal.tasks.SkipTaskExecuter.doExecute(SkipTaskExecuter.java:63) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.api.internal.tasks.SkipTaskExecuter.execute(SkipTaskExecuter.java:36) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.api.internal.AbstractTask.execute(AbstractTask.java:215) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTaskGraphExecuter.java:167) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGraphExecuter.java:160) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:78) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.execution.TaskNameResolvingBuildExecuter.execute(TaskNameResolvingBuildExecuter.java:174) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.execution.DelegatingBuildExecuter.execute(DelegatingBuildExecuter.java:54) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.execution.DelegatingBuildExecuter.execute(DelegatingBuildExecuter.java:54) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.GradleLauncher.doBuildStages(GradleLauncher.java:193) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.GradleLauncher.doBuild(GradleLauncher.java:128) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.GradleLauncher.run(GradleLauncher.java:98) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.Main.execute(Main.java:100) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.Main.main(Main.java:44) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.BootstrapMain.main(BootstrapMain.java:50) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        Caused by: java.lang.ClassCastException: org.gradle.api.tasks.util.FileSet cannot be cast to groovy.lang.GroovyObject
        at org.gradle.api.internal.file.AntFileCollectionMatchingTaskBuilder$_addToAntBuilder_closure1.doCall(AntFileCollectionMatchingTaskBuilder.groovy:15) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.api.internal.file.AntFileCollectionMatchingTaskBuilder.addToAntBuilder(AntFileCollectionMatchingTaskBuilder.groovy:14) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.api.internal.file.AbstractFileCollection.addAsMatchingTask(AbstractFileCollection.java:90) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.api.internal.file.AbstractFileCollection.addToAntBuilder(AbstractFileCollection.java:85) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.api.tasks.compile.AntJavac$_execute_closure2.doCall(AntJavac.groovy:67) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.api.tasks.compile.AntJavac$_execute_closure2.doCall(AntJavac.groovy) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.api.internal.project.ant.BasicAntBuilder.doInvokeMethod(BasicAntBuilder.java:74) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.api.internal.project.DefaultAntBuilder.super$3$invokeMethod(DefaultAntBuilder.groovy) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.api.internal.project.DefaultAntBuilder.invokeMethod(DefaultAntBuilder.groovy:37) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.api.tasks.compile.AntJavac.execute(AntJavac.groovy:66) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.api.tasks.compile.Compile.compile(Compile.java:57) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.api.DefaultTask.invokeMethod(DefaultTask.groovy) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.util.ReflectionUtil.invoke(ReflectionUtil.groovy:23) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.api.internal.project.AnnotationProcessingTaskFactory$2.execute(AnnotationProcessingTaskFactory.java:125) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.api.internal.project.AnnotationProcessingTaskFactory$2.execute(AnnotationProcessingTaskFactory.java:123) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        at org.gradle.api.internal.tasks.DefaultTaskExecuter.executeActions(DefaultTaskExecuter.java:56) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
        ... 17 common frames omitted
       
        BUILD FAILED
       
        Total time: 7.838 secs

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

signature.asc (204 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Is this an internal Gradle problem

Adam Murdoch-2

You probably need to do a clean and then build Gradle (at least until we
have incremental compilation).

Russel Winder wrote:

> I haven't build ADS using Gradle for a while so I just tried.  Clearly
> there is something wrong, either a breaking change that I haven't
> tracked in the build,gradle or a problem in Gradle.  I suspect the
> former but the message doesn't give me much to go on :-(
>        
>         :compileJava
>        
>         FAILURE: Build failed with an exception.
>        
>         * Where:
>         Build file '/home/users/russel/Repositories/Bazaar/Masters/ADS/build.gradle'
>        
>         * What went wrong:
>         Execution failed for task ':compileJava'.
>         Cause: org.gradle.api.tasks.util.FileSet cannot be cast to groovy.lang.GroovyObject
>        
>         * Try:
>         Run with -S option to get the full (very verbose) stacktrace.
>        
>         * Exception is:
>         org.gradle.api.GradleScriptException: Build file '/home/users/russel/Repositories/Bazaar/Masters/ADS/build.gradle'
>         Execution failed for task ':compileJava'.
>         at org.gradle.api.internal.tasks.DefaultTaskExecuter.executeActions(DefaultTaskExecuter.java:64) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.api.internal.tasks.DefaultTaskExecuter.execute(DefaultTaskExecuter.java:43) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.api.internal.project.ExecutionShortCircuitTaskExecuter.execute(ExecutionShortCircuitTaskExecuter.java:56) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.api.internal.tasks.SkipTaskExecuter.doExecute(SkipTaskExecuter.java:63) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.api.internal.tasks.SkipTaskExecuter.execute(SkipTaskExecuter.java:36) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.api.internal.AbstractTask.execute(AbstractTask.java:215) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTaskGraphExecuter.java:167) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGraphExecuter.java:160) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:78) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.execution.TaskNameResolvingBuildExecuter.execute(TaskNameResolvingBuildExecuter.java:174) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.execution.DelegatingBuildExecuter.execute(DelegatingBuildExecuter.java:54) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.execution.DelegatingBuildExecuter.execute(DelegatingBuildExecuter.java:54) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.GradleLauncher.doBuildStages(GradleLauncher.java:193) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.GradleLauncher.doBuild(GradleLauncher.java:128) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.GradleLauncher.run(GradleLauncher.java:98) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.Main.execute(Main.java:100) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.Main.main(Main.java:44) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.BootstrapMain.main(BootstrapMain.java:50) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         Caused by: java.lang.ClassCastException: org.gradle.api.tasks.util.FileSet cannot be cast to groovy.lang.GroovyObject
>         at org.gradle.api.internal.file.AntFileCollectionMatchingTaskBuilder$_addToAntBuilder_closure1.doCall(AntFileCollectionMatchingTaskBuilder.groovy:15) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.api.internal.file.AntFileCollectionMatchingTaskBuilder.addToAntBuilder(AntFileCollectionMatchingTaskBuilder.groovy:14) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.api.internal.file.AbstractFileCollection.addAsMatchingTask(AbstractFileCollection.java:90) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.api.internal.file.AbstractFileCollection.addToAntBuilder(AbstractFileCollection.java:85) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.api.tasks.compile.AntJavac$_execute_closure2.doCall(AntJavac.groovy:67) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.api.tasks.compile.AntJavac$_execute_closure2.doCall(AntJavac.groovy) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.api.internal.project.ant.BasicAntBuilder.doInvokeMethod(BasicAntBuilder.java:74) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.api.internal.project.DefaultAntBuilder.super$3$invokeMethod(DefaultAntBuilder.groovy) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.api.internal.project.DefaultAntBuilder.invokeMethod(DefaultAntBuilder.groovy:37) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.api.tasks.compile.AntJavac.execute(AntJavac.groovy:66) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.api.tasks.compile.Compile.compile(Compile.java:57) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.api.DefaultTask.invokeMethod(DefaultTask.groovy) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.util.ReflectionUtil.invoke(ReflectionUtil.groovy:23) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.api.internal.project.AnnotationProcessingTaskFactory$2.execute(AnnotationProcessingTaskFactory.java:125) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.api.internal.project.AnnotationProcessingTaskFactory$2.execute(AnnotationProcessingTaskFactory.java:123) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         at org.gradle.api.internal.tasks.DefaultTaskExecuter.executeActions(DefaultTaskExecuter.java:56) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>         ... 17 common frames omitted
>        
>         BUILD FAILED
>        
>         Total time: 7.838 secs
>
>  

--
Adam Murdoch
Gradle Developer
http://www.gradle.org


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: Is this an internal Gradle problem

Russel Winder-2
On Sat, 2009-10-24 at 07:34 +1100, Adam Murdoch wrote:
> You probably need to do a clean and then build Gradle (at least until we
> have incremental compilation).

This is a fresh compile after a clean.

Actually it would be very helpful if someone could branch the Bazaar
branch and try it to see if the same result obtains.

        http://www.russel.org.uk/Bazaar/ADS

I just got the same result running Gradle against a branch new
branch :-(

> Russel Winder wrote:
> > I haven't build ADS using Gradle for a while so I just tried.  Clearly
> > there is something wrong, either a breaking change that I haven't
> > tracked in the build,gradle or a problem in Gradle.  I suspect the
> > former but the message doesn't give me much to go on :-(
> >        
> >         :compileJava
> >        
> >         FAILURE: Build failed with an exception.
> >        
> >         * Where:
> >         Build file '/home/users/russel/Repositories/Bazaar/Masters/ADS/build.gradle'
> >        
> >         * What went wrong:
> >         Execution failed for task ':compileJava'.
> >         Cause: org.gradle.api.tasks.util.FileSet cannot be cast to groovy.lang.GroovyObject
> >        
> >         * Try:
> >         Run with -S option to get the full (very verbose) stacktrace.
> >        
> >         * Exception is:
> >         org.gradle.api.GradleScriptException: Build file '/home/users/russel/Repositories/Bazaar/Masters/ADS/build.gradle'
> >         Execution failed for task ':compileJava'.
> >         at org.gradle.api.internal.tasks.DefaultTaskExecuter.executeActions(DefaultTaskExecuter.java:64) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.api.internal.tasks.DefaultTaskExecuter.execute(DefaultTaskExecuter.java:43) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.api.internal.project.ExecutionShortCircuitTaskExecuter.execute(ExecutionShortCircuitTaskExecuter.java:56) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.api.internal.tasks.SkipTaskExecuter.doExecute(SkipTaskExecuter.java:63) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.api.internal.tasks.SkipTaskExecuter.execute(SkipTaskExecuter.java:36) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.api.internal.AbstractTask.execute(AbstractTask.java:215) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTaskGraphExecuter.java:167) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGraphExecuter.java:160) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:78) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.execution.TaskNameResolvingBuildExecuter.execute(TaskNameResolvingBuildExecuter.java:174) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.execution.DelegatingBuildExecuter.execute(DelegatingBuildExecuter.java:54) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.execution.DelegatingBuildExecuter.execute(DelegatingBuildExecuter.java:54) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.GradleLauncher.doBuildStages(GradleLauncher.java:193) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.GradleLauncher.doBuild(GradleLauncher.java:128) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.GradleLauncher.run(GradleLauncher.java:98) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.Main.execute(Main.java:100) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.Main.main(Main.java:44) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.BootstrapMain.main(BootstrapMain.java:50) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         Caused by: java.lang.ClassCastException: org.gradle.api.tasks.util.FileSet cannot be cast to groovy.lang.GroovyObject
> >         at org.gradle.api.internal.file.AntFileCollectionMatchingTaskBuilder$_addToAntBuilder_closure1.doCall(AntFileCollectionMatchingTaskBuilder.groovy:15) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.api.internal.file.AntFileCollectionMatchingTaskBuilder.addToAntBuilder(AntFileCollectionMatchingTaskBuilder.groovy:14) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.api.internal.file.AbstractFileCollection.addAsMatchingTask(AbstractFileCollection.java:90) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.api.internal.file.AbstractFileCollection.addToAntBuilder(AbstractFileCollection.java:85) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.api.tasks.compile.AntJavac$_execute_closure2.doCall(AntJavac.groovy:67) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.api.tasks.compile.AntJavac$_execute_closure2.doCall(AntJavac.groovy) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.api.internal.project.ant.BasicAntBuilder.doInvokeMethod(BasicAntBuilder.java:74) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.api.internal.project.DefaultAntBuilder.super$3$invokeMethod(DefaultAntBuilder.groovy) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.api.internal.project.DefaultAntBuilder.invokeMethod(DefaultAntBuilder.groovy:37) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.api.tasks.compile.AntJavac.execute(AntJavac.groovy:66) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.api.tasks.compile.Compile.compile(Compile.java:57) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.api.DefaultTask.invokeMethod(DefaultTask.groovy) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.util.ReflectionUtil.invoke(ReflectionUtil.groovy:23) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.api.internal.project.AnnotationProcessingTaskFactory$2.execute(AnnotationProcessingTaskFactory.java:125) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.api.internal.project.AnnotationProcessingTaskFactory$2.execute(AnnotationProcessingTaskFactory.java:123) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         at org.gradle.api.internal.tasks.DefaultTaskExecuter.executeActions(DefaultTaskExecuter.java:56) [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
> >         ... 17 common frames omitted
> >        
> >         BUILD FAILED
> >        
> >         Total time: 7.838 secs
> >
> >  
>
--
Russel.
=============================================================================
Dr Russel Winder      Partner
                                            xmpp: [hidden email]
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:[hidden email]
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder

signature.asc (204 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Incremental compilation [ was Is this an internal Gradle problem ]

Russel Winder-2
In reply to this post by Adam Murdoch-2
On Sat, 2009-10-24 at 07:34 +1100, Adam Murdoch wrote:
> You probably need to do a clean and then build Gradle (at least until we
> have incremental compilation).

It just struck me that you say Gradle doesn't yet have incremental
compilation.  I had thought that the whole point of the DAG was that
each and every file was checked separately for needing to be compiled
and that all import dependencies were also checked to ensure that
transitive dependencies on changed files were transmitted through.  If
this is not yet the case then it is likely that many people have been
working under a big misapprehension.

One of the biggest problems with Java compilation is that Javac is
basically useless at handling these issues and Ant and Maven (and Gant)
don't do anything extra.  This is where SCons wins hugely since it
handles all this very, very carefully.  This has to be Gradle's USP --
"no more always building from clean as with Ant and Maven".

Can I suggest that this be the blocking issue for 0.9?

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

signature.asc (204 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Incremental compilation [ was Is this an internal Gradle problem ]

hans_d
Administrator
Hi Russel,

On Oct 24, 2009, at 9:01 AM, Russel Winder wrote:

> On Sat, 2009-10-24 at 07:34 +1100, Adam Murdoch wrote:
>> You probably need to do a clean and then build Gradle (at least  
>> until we
>> have incremental compilation).
>
> It just struck me that you say Gradle doesn't yet have incremental
> compilation.  I had thought that the whole point of the DAG was that
> each and every file was checked separately for needing to be compiled
> and that all import dependencies were also checked to ensure that
> transitive dependencies on changed files were transmitted through.  If
> this is not yet the case then it is likely that many people have been
> working under a big misapprehension.

I don't think that many people have this misunderstanding. The DAG  
contains task. The Java files are all compiled by one task. In this  
case it is the job of the compile task to be smart.

>
> One of the biggest problems with Java compilation is that Javac is
> basically useless at handling these issues and Ant and Maven (and  
> Gant)
> don't do anything extra.  This is where SCons wins hugely since it
> handles all this very, very carefully.  This has to be Gradle's USP --
> "no more always building from clean as with Ant and Maven".
>
> Can I suggest that this be the blocking issue for 0.9?

We offer incremental compilation (via the Ant depend task under the  
hood). At the moment you have to switch it on explicitly.

<compileTaskName>.options.useDepends = true

We might use this as the default for 0.9.

After 0.9 we are thinking about providing an own incremental compile  
implementation which would also catch some cases which are not covered  
by the Ant depend task. This would only work with Java 6. For Java 5  
users we would still delegate to Ant depend.

- Hans

--
Hans Dockter
Gradle Project Manager
http://www.gradle.org





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: Is this an internal Gradle problem

hans_d
Administrator
In reply to this post by Russel Winder-2

On Oct 24, 2009, at 8:52 AM, Russel Winder wrote:

> On Sat, 2009-10-24 at 07:34 +1100, Adam Murdoch wrote:
>> You probably need to do a clean and then build Gradle (at least  
>> until we
>> have incremental compilation).
>
> This is a fresh compile after a clean.
>
> Actually it would be very helpful if someone could branch the Bazaar
> branch and try it to see if the same result obtains.
>
> http://www.russel.org.uk/Bazaar/ADS

Unfortunately I could not check this out with bazaar 1.10. I have the  
Mac 2.0.1 Bazaar bundle but bzr --version still gives a 1.10.

Could you send a src zip?

- Hans

--
Hans Dockter
Gradle Project Manager
http://www.gradle.org

>
> I just got the same result running Gradle against a branch new
> branch :-(
>
>> Russel Winder wrote:
>>> I haven't build ADS using Gradle for a while so I just tried.  
>>> Clearly
>>> there is something wrong, either a breaking change that I haven't
>>> tracked in the build,gradle or a problem in Gradle.  I suspect the
>>> former but the message doesn't give me much to go on :-(
>>>
>>>        :compileJava
>>>
>>>        FAILURE: Build failed with an exception.
>>>
>>>        * Where:
>>>        Build file '/home/users/russel/Repositories/Bazaar/Masters/
>>> ADS/build.gradle'
>>>
>>>        * What went wrong:
>>>        Execution failed for task ':compileJava'.
>>>        Cause: org.gradle.api.tasks.util.FileSet cannot be cast to  
>>> groovy.lang.GroovyObject
>>>
>>>        * Try:
>>>        Run with -S option to get the full (very verbose) stacktrace.
>>>
>>>        * Exception is:
>>>        org.gradle.api.GradleScriptException: Build file '/home/
>>> users/russel/Repositories/Bazaar/Masters/ADS/build.gradle'
>>>        Execution failed for task ':compileJava'.
>>>         at  
>>> org.gradle.api.internal.tasks.DefaultTaskExecuter.executeActions
>>> (DefaultTaskExecuter.java:64) [gradle-
>>> core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>>>         at  
>>> org.gradle.api.internal.tasks.DefaultTaskExecuter.execute
>>> (DefaultTaskExecuter.java:43) [gradle-
>>> core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>>>         at  
>>> org.gradle.api.internal.project.ExecutionShortCircuitTaskExecuter.execute
>>> (ExecutionShortCircuitTaskExecuter.java:56) [gradle-
>>> core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>>>         at org.gradle.api.internal.tasks.SkipTaskExecuter.doExecute
>>> (SkipTaskExecuter.java:63) [gradle-
>>> core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>>>         at org.gradle.api.internal.tasks.SkipTaskExecuter.execute
>>> (SkipTaskExecuter.java:36) [gradle-
>>> core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>>>         at org.gradle.api.internal.AbstractTask.execute
>>> (AbstractTask.java:215) [gradle-core-0.9-20091023090404+0100.jar:
>>> 0.9-20091023090404+0100]
>>>         at  
>>> org.gradle.execution.DefaultTaskGraphExecuter.executeTask
>>> (DefaultTaskGraphExecuter.java:167) [gradle-
>>> core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>>>         at org.gradle.execution.DefaultTaskGraphExecuter.doExecute
>>> (DefaultTaskGraphExecuter.java:160) [gradle-
>>> core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>>>         at org.gradle.execution.DefaultTaskGraphExecuter.execute
>>> (DefaultTaskGraphExecuter.java:78) [gradle-
>>> core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>>>         at  
>>> org.gradle.execution.TaskNameResolvingBuildExecuter.execute
>>> (TaskNameResolvingBuildExecuter.java:174) [gradle-
>>> core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>>>         at org.gradle.execution.DelegatingBuildExecuter.execute
>>> (DelegatingBuildExecuter.java:54) [gradle-
>>> core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>>>         at org.gradle.execution.DelegatingBuildExecuter.execute
>>> (DelegatingBuildExecuter.java:54) [gradle-
>>> core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>>>         at org.gradle.GradleLauncher.doBuildStages
>>> (GradleLauncher.java:193) [gradle-core-0.9-20091023090404+0100.jar:
>>> 0.9-20091023090404+0100]
>>>         at org.gradle.GradleLauncher.doBuild(GradleLauncher.java:
>>> 128) [gradle-core-0.9-20091023090404+0100.jar:
>>> 0.9-20091023090404+0100]
>>>         at org.gradle.GradleLauncher.run(GradleLauncher.java:98)  
>>> [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>>>         at org.gradle.Main.execute(Main.java:100) [gradle-
>>> core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>>>         at org.gradle.Main.main(Main.java:44) [gradle-
>>> core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>>>         at org.gradle.BootstrapMain.main(BootstrapMain.java:50)  
>>> [gradle-core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>>>        Caused by: java.lang.ClassCastException:  
>>> org.gradle.api.tasks.util.FileSet cannot be cast to  
>>> groovy.lang.GroovyObject
>>>         at  
>>> org.gradle.api.internal.file.AntFileCollectionMatchingTaskBuilder
>>> $_addToAntBuilder_closure1.doCall
>>> (AntFileCollectionMatchingTaskBuilder.groovy:15) [gradle-
>>> core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>>>         at  
>>> org.gradle.api.internal.file.AntFileCollectionMatchingTaskBuilder.addToAntBuilder
>>> (AntFileCollectionMatchingTaskBuilder.groovy:14) [gradle-
>>> core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>>>         at  
>>> org.gradle.api.internal.file.AbstractFileCollection.addAsMatchingTask
>>> (AbstractFileCollection.java:90) [gradle-
>>> core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>>>         at  
>>> org.gradle.api.internal.file.AbstractFileCollection.addToAntBuilder
>>> (AbstractFileCollection.java:85) [gradle-
>>> core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>>>         at org.gradle.api.tasks.compile.AntJavac
>>> $_execute_closure2.doCall(AntJavac.groovy:67) [gradle-
>>> core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>>>         at org.gradle.api.tasks.compile.AntJavac
>>> $_execute_closure2.doCall(AntJavac.groovy) [gradle-
>>> core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>>>         at  
>>> org.gradle.api.internal.project.ant.BasicAntBuilder.doInvokeMethod
>>> (BasicAntBuilder.java:74) [gradle-core-0.9-20091023090404+0100.jar:
>>> 0.9-20091023090404+0100]
>>>         at org.gradle.api.internal.project.DefaultAntBuilder.super
>>> $3$invokeMethod(DefaultAntBuilder.groovy) [gradle-
>>> core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>>>         at  
>>> org.gradle.api.internal.project.DefaultAntBuilder.invokeMethod
>>> (DefaultAntBuilder.groovy:37) [gradle-
>>> core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>>>         at org.gradle.api.tasks.compile.AntJavac.execute
>>> (AntJavac.groovy:66) [gradle-core-0.9-20091023090404+0100.jar:
>>> 0.9-20091023090404+0100]
>>>         at org.gradle.api.tasks.compile.Compile.compile
>>> (Compile.java:57) [gradle-core-0.9-20091023090404+0100.jar:
>>> 0.9-20091023090404+0100]
>>>         at org.gradle.api.DefaultTask.invokeMethod
>>> (DefaultTask.groovy) [gradle-core-0.9-20091023090404+0100.jar:
>>> 0.9-20091023090404+0100]
>>>         at org.gradle.util.ReflectionUtil.invoke
>>> (ReflectionUtil.groovy:23) [gradle-
>>> core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>>>         at  
>>> org.gradle.api.internal.project.AnnotationProcessingTaskFactory
>>> $2.execute(AnnotationProcessingTaskFactory.java:125) [gradle-
>>> core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>>>         at  
>>> org.gradle.api.internal.project.AnnotationProcessingTaskFactory
>>> $2.execute(AnnotationProcessingTaskFactory.java:123) [gradle-
>>> core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>>>         at  
>>> org.gradle.api.internal.tasks.DefaultTaskExecuter.executeActions
>>> (DefaultTaskExecuter.java:56) [gradle-
>>> core-0.9-20091023090404+0100.jar:0.9-20091023090404+0100]
>>>         ... 17 common frames omitted
>>>
>>>        BUILD FAILED
>>>
>>>        Total time: 7.838 secs
>>>
>>>
>>
> --
> Russel.
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> Dr Russel Winder      Partner
>                                            xmpp: [hidden email]
> Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
> 41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:[hidden email]
> London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: Is this an internal Gradle problem

Russel Winder-2
On Mon, 2009-10-26 at 22:25 +0100, Hans Dockter wrote:

> On Oct 24, 2009, at 8:52 AM, Russel Winder wrote:
>
> > On Sat, 2009-10-24 at 07:34 +1100, Adam Murdoch wrote:
> >> You probably need to do a clean and then build Gradle (at least  
> >> until we
> >> have incremental compilation).
> >
> > This is a fresh compile after a clean.
> >
> > Actually it would be very helpful if someone could branch the Bazaar
> > branch and try it to see if the same result obtains.
> >
> > http://www.russel.org.uk/Bazaar/ADS
>
> Unfortunately I could not check this out with bazaar 1.10. I have the  
> Mac 2.0.1 Bazaar bundle but bzr --version still gives a 1.10.
>
> Could you send a src zip?
Have you tried the latest Mac OS X bundle of Bazaar?  If the version
number is still wrong we should tell them -- I am on the Bazaar Mac OS X
mailing list so can hassle all the right people.


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

signature.asc (204 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Incremental compilation [ was Is this an internal Gradle problem ]

Russel Winder-2
In reply to this post by hans_d
On Sun, 2009-10-25 at 17:30 +0100, Hans Dockter wrote:
[ . . . ]

> We offer incremental compilation (via the Ant depend task under the  
> hood). At the moment you have to switch it on explicitly.
>
> <compileTaskName>.options.useDepends = true
>
> We might use this as the default for 0.9.
>
> After 0.9 we are thinking about providing an own incremental compile  
> implementation which would also catch some cases which are not covered  
> by the Ant depend task. This would only work with Java 6. For Java 5  
> users we would still delegate to Ant depend.
Did the default get switched so that the default is true?


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

signature.asc (204 bytes) Download Attachment