aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2014-05-29 20:13:05 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2014-05-29 20:13:05 +0200
commit912b96c1e55f9e400505cab2963a28ca1433b275 (patch)
tree9f790e3a9084291560582cb2b01db9c8acad4ce9 /src/core/lombok
parent2c1e300f1b171be4e06fe267097630a79a13fde0 (diff)
downloadlombok-912b96c1e55f9e400505cab2963a28ca1433b275.tar.gz
lombok-912b96c1e55f9e400505cab2963a28ca1433b275.tar.bz2
lombok-912b96c1e55f9e400505cab2963a28ca1433b275.zip
#683: URI not absolute errors in mvn builds due to search for lombok.config being broken.
Diffstat (limited to 'src/core/lombok')
-rw-r--r--src/core/lombok/core/configuration/FileSystemSourceCache.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/lombok/core/configuration/FileSystemSourceCache.java b/src/core/lombok/core/configuration/FileSystemSourceCache.java
index 50d8b13a..d502a56b 100644
--- a/src/core/lombok/core/configuration/FileSystemSourceCache.java
+++ b/src/core/lombok/core/configuration/FileSystemSourceCache.java
@@ -44,7 +44,12 @@ public class FileSystemSourceCache {
public Iterable<ConfigurationSource> sourcesForJavaFile(URI javaFile, ConfigurationProblemReporter reporter) {
if (javaFile == null) return Collections.emptyList();
- return sourcesForDirectory(new File(javaFile.normalize()).getParentFile(), reporter);
+ URI uri = javaFile.normalize();
+ if (!uri.isAbsolute()) {
+ uri = new File(".").toURI().resolve(uri);
+ }
+
+ return sourcesForDirectory(new File(uri).getParentFile(), reporter);
}
public Iterable<ConfigurationSource> sourcesForDirectory(URI directory, ConfigurationProblemReporter reporter) {