diff --git a/src/it/dangling-symlinks/setup.bsh b/src/it/dangling-symlinks/setup.bsh index c59cb1f..e414b46 100644 --- a/src/it/dangling-symlinks/setup.bsh +++ b/src/it/dangling-symlinks/setup.bsh @@ -31,7 +31,7 @@ try File target = new File( targetDir, "link-target.txt" ); System.out.println( "Creating symlink " + link + " -> " + target ); - Files.createSymbolicLink( target, link ); + Files.createSymbolicLink( target.toPath(), link.toPath() ); if ( !link.exists() ) { System.out.println( "Platform does not support symlinks, skipping test." ); diff --git a/src/it/symlink-dont-follow/setup.bsh b/src/it/symlink-dont-follow/setup.bsh index 1ea6c12..c6bafed 100644 --- a/src/it/symlink-dont-follow/setup.bsh +++ b/src/it/symlink-dont-follow/setup.bsh @@ -37,7 +37,7 @@ 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, link ); + Files.createSymbolicLink( target.toPath(), link.toPath() ); if ( !link.exists() ) { System.out.println( "Platform does not support symlinks, skipping test." );