diff --git a/src/it/symlink-dont-follow/setup.bsh b/src/it/symlink-dont-follow/setup.bsh index c6bafed..cd7b7c4 100644 --- a/src/it/symlink-dont-follow/setup.bsh +++ b/src/it/symlink-dont-follow/setup.bsh @@ -37,7 +37,9 @@ for ( String[] pair : pairs ) File target = new File( basedir, pair[0] ); File link = new File( basedir, pair[1] ); System.out.println( "Creating symlink " + link + " -> " + target ); - Files.createSymbolicLink( target.toPath(), link.toPath() ); + Path targetPath = target.toPath(); + Path linkPath = link.toPath(); + Files.createSymbolicLink( targetPath, linkPath ); if ( !link.exists() ) { System.out.println( "Platform does not support symlinks, skipping test." );