akhikhl / wuff

Gradle plugin for automating assembly of OSGi/Eclipse bundles and applications
MIT License
152 stars 51 forks source link

Directory not readable on Mac OSX #97

Open ppodgorsek opened 9 years ago

ppodgorsek commented 9 years ago

While running gradlew build using the Gradle wrapper (2.8), I get the following error:

$ ./gradlew build
:compileJava
:createExtraFiles UP-TO-DATE
:processResources

FAILURE: Build failed with an exception.

* What went wrong:
Could not list contents of directory '/.DocumentRevisions-V100' as it is not readable.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 7.067 secs

What is strange is that I don't get the error on other environments, only OSX.

build.gradle:

buildscript {
    repositories {
        mavenCentral()
        mavenLocal()
        jcenter()
    }

    dependencies {
        classpath 'org.akhikhl.wuff:wuff-plugin:+'
    }
}

apply plugin: 'org.akhikhl.wuff.eclipse-bundle'

repositories {
    mavenCentral()
    mavenLocal()
    jcenter()
}

dependencies {
    compile 'com.google.guava:guava:10.0.1'
}
ppodgorsek commented 9 years ago

The problem was due to errors in the build.properties file. Here were it contents:

source.. = src/main/java/,src/main/resources/
output.. = bin/
bin.includes = bin/

After deleting the file, everything worked again. It seems the bundle configurer couldn't read the file properly and tried to parse the drive's root because of that.