Skip to content

Commit c415605

Browse files
committed
swap link and target order
1 parent aa3711c commit c415605

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/it/dangling-symlinks/setup.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ try
3131
File target = new File( targetDir, "link-target.txt" );
3232

3333
System.out.println( "Creating symlink " + link + " -> " + target );
34-
Files.createSymbolicLink( target.toPath(), link.toPath() );
34+
Files.createSymbolicLink( link.toPath(), target.toPath() );
3535
if ( !link.exists() )
3636
{
3737
System.out.println( "Platform does not support symlinks, skipping test." );

src/it/symlink-dont-follow/setup.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ for ( pair : pairs )
3939
println "Creating symlink " + link + " -> " + target;
4040
Path targetPath = target.toPath();
4141
Path linkPath = link.toPath();
42-
Files.createSymbolicLink( (Path) targetPath, (Path) linkPath );
42+
Files.createSymbolicLink( linkPath, targetPath );
4343
if ( !link.exists() )
4444
{
4545
println "Platform does not support symlinks, skipping test.";

0 commit comments

Comments
 (0)