On 4/04/10 11:04 PM, Geronimo M. H. wrote:
Hello,

the last days I worked on documentation so I did not touch the build system.
Today I called build several times, without having troubles.

Then I checked in my work and after that I wanted to rebuild the system and
the I got an NPE. I had no idea about my faults, so I cleaned up all, but the
error is stable.

The stacktrace says something about DirectoryWalker and as the error line
is the line, where I create my Version-Instance, I suppose, the bug is in this
lines (from the Version-class).
---------<snip>-----------------
boolean uptodate = true
def modified     = timestampFile.lastModified()
def javaSources  = project.fileTree(project.projectDir)

javaSources.include('**/*.java')
javaSources.visit { curEntry ->
    if (curEntry == null || curEntry.file == null) return;
    if (curEntry.file.isFile()&&  curEntry.lastModified>  modified) {
       uptodate = false
       curEntry.stopVisiting()
    }
}
-------<snap>--------------
I added the question for null-instances today, but it did not solve the
problem. So I think, it has to do with the files and directories after the
commit. Could an empty directory cause a problem like this?

Probably not. It might be a permission problem, possibly. I've added some trace which should let us know which directory it cannot list. Could you run the build using a new Gradle snapshot? (either build from source, or http://teamcity.jetbrains.com/viewLog.html?buildId=34091&buildTypeId=bt107&tab=artifacts)


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


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

   http://xircles.codehaus.org/manage_email


Reply via email to