The problem I described hasn't recurred since my previous email. But now as
I'm upgrading to 0.9.2 it's happening again. I wanted to see if the cause of
this could be found before I 'fix' it by removing cache files.

The debug log doesn't show anything helpful (see below). Is there anything
else I can check to find out what the problem is here?

The exact scenario is that I have been using gradle 0.9.1 that is in my
path. I've updated gradlew to 0.9.2 and am testing it. When I ran 'clean'
followed by the copySrcDist task it is skipped, causing a failure farther
along in the build.

-David

16:44:55.239 [DEBUG] [org.gradle.api.internal.tasks.SkipTaskExecuter]
Starting to execute task ':copySrcDist'
16:44:55.240 [DEBUG]
[org.gradle.api.internal.project.taskfactory.ExecutionShortCircuitTaskExecuter]
Determining if task ':copySrcDist' is up-to-date
16:44:55.481 [INFO]
[org.gradle.api.internal.changedetection.DefaultTaskArtifactStateRepository]
Skipping task ':copySrcDist' as it is up-to-date.
16:44:55.483 [DEBUG]
[org.gradle.api.internal.project.taskfactory.ExecutionShortCircuitTaskExecuter]
task ':copySrcDist' is up-to-date
16:44:55.484 [DEBUG] [org.gradle.api.internal.tasks.SkipTaskExecuter]
Finished executing task ':copySrcDist'


On Thu, Jan 6, 2011 at 7:01 AM, David Resnick <[email protected]> wrote:

> I'm encountering a problem where a copy task intermittently doesn't copy
> and instead skips with UP-TO-DATE. I am having a hard time looking into the
> problem because it happens so rarely. It has happened on a number of
> different machines, though only very rarely.
>
> The task copies a directory and looks like this:
>
> task copySrcDist(type: Copy) {
>     from 'src/dist'
>     into distDir
> }
>
> The problem has happened with both 0.9 and 0.9.1 on Linux.
>
> Has anyone else seen this problem?
>
> Thanks,
> David
>

Reply via email to