Skip to content

Commit

Permalink
groovy
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Nov 16, 2024
1 parent 63fc9f4 commit 820f14f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/it/symlink-dont-follow/setup.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ import java.util.jar.*;
import java.util.regex.*;
import org.apache.maven.plugins.clean.*;

String[][] pairs =
{
{ "ext/file.txt", "target/link.txt" },
{ "ext/dir", "target/link" },
{ "ext/file.txt", "target2/link.txt" },
{ "ext/dir", "target2/link" },
};
def pairs =
[
[ "ext/file.txt", "target/link.txt" ],
[ "ext/dir", "target/link" ],
[ "ext/file.txt", "target2/link.txt" ],
[ "ext/dir", "target2/link" ],
];

for ( String[] pair : pairs )
for ( pair : pairs )
{
File target = new File( basedir, pair[0] );
File link = new File( basedir, pair[1] );
Expand Down

0 comments on commit 820f14f

Please sign in to comment.