From 51259942aacc2a3b02564ae43dfabebb98aebf58 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Mon, 23 Sep 2013 14:38:34 +0200 Subject: [PATCH 1/3] Don't try to relativize symlink targets --- .../src/main/java/org/fedoraproject/maven/installer/impl/Package.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xmvn-core/src/main/java/org/fedoraproject/maven/installer/impl/Package.java b/xmvn-core/src/main/java/org/fedoraproject/maven/installer/impl/Package.java index 95faa06..1ab04b6 100644 --- a/xmvn-core/src/main/java/org/fedoraproject/maven/installer/impl/Package.java +++ b/xmvn-core/src/main/java/org/fedoraproject/maven/installer/impl/Package.java @@ -89,8 +89,7 @@ class Package public void addSymlink( Path symlink, Path target ) throws IOException { - Path symlinkTarget = symlink.getParent().relativize( target ); - Path symlinkFile = FileUtils.createAnonymousSymlink( symlinkTarget ); + Path symlinkFile = FileUtils.createAnonymousSymlink( target ); addFile( symlinkFile, symlink, 0644 ); } -- 1.8.1.4