aboutsummaryrefslogtreecommitdiff
path: root/src/delombok
diff options
context:
space:
mode:
Diffstat (limited to 'src/delombok')
-rw-r--r--src/delombok/lombok/delombok/Delombok.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/delombok/lombok/delombok/Delombok.java b/src/delombok/lombok/delombok/Delombok.java
index e125d622..f28e5b72 100644
--- a/src/delombok/lombok/delombok/Delombok.java
+++ b/src/delombok/lombok/delombok/Delombok.java
@@ -428,7 +428,8 @@ public class Delombok {
}
private Writer createFileWriter(File outBase, File inBase, URI file) throws IOException {
- URI relative = inBase.toURI().relativize(file);
+ URI base = inBase.toURI();
+ URI relative = base.relativize(base.resolve(file));
File outFile;
if (relative.isAbsolute()) {
outFile = new File(outBase, new File(relative).getName());