From 37aae7ef9f3e169ae43b7521b64ee3506b254405 Mon Sep 17 00:00:00 2001 From: Elliotte Rusty Harold Date: Sat, 16 Nov 2024 12:44:57 -0500 Subject: [PATCH] swap link and target order --- src/it/dangling-symlinks/setup.groovy | 2 +- src/it/symlink-dont-follow/setup.groovy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/it/dangling-symlinks/setup.groovy b/src/it/dangling-symlinks/setup.groovy index e414b46..81623d1 100644 --- a/src/it/dangling-symlinks/setup.groovy +++ b/src/it/dangling-symlinks/setup.groovy @@ -31,7 +31,7 @@ try File target = new File( targetDir, "link-target.txt" ); System.out.println( "Creating symlink " + link + " -> " + target ); - Files.createSymbolicLink( target.toPath(), link.toPath() ); + Files.createSymbolicLink( link.toPath(), target.toPath() ); if ( !link.exists() ) { System.out.println( "Platform does not support symlinks, skipping test." ); diff --git a/src/it/symlink-dont-follow/setup.groovy b/src/it/symlink-dont-follow/setup.groovy index 969faa5..7ae9bc5 100644 --- a/src/it/symlink-dont-follow/setup.groovy +++ b/src/it/symlink-dont-follow/setup.groovy @@ -39,7 +39,7 @@ for ( pair : pairs ) println "Creating symlink " + link + " -> " + target; Path targetPath = target.toPath(); Path linkPath = link.toPath(); - Files.createSymbolicLink( (Path) targetPath, (Path) linkPath ); + Files.createSymbolicLink( linkPath, targetPath ); if ( !link.exists() ) { println "Platform does not support symlinks, skipping test.";