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 24d42b3 commit f195acd
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/it/symlink-dont-follow/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -18,43 +18,40 @@
*/

import java.io.*;
import java.util.*;
import java.util.jar.*;
import java.util.regex.*;

String[] expected = {
def expected = [
"ext",
"ext/file.txt",
"ext/dir/file.txt",
};
];

for ( String path : expected )
{
File file = new File( basedir, path );
System.out.println( "Checking for existence of " + file );
println "Checking for existence of " + file;
if ( !file.exists() )
{
System.out.println( "FAILURE!" );
println "FAILURE!";
return false;
}
}

String[] unexpected = {
def unexpected = [
"target/link.txt",
"target/link",
"target",
"target2/link.txt",
"target2/link",
"target2",
};
];

for ( String path : unexpected )
{
File file = new File( basedir, path );
System.out.println( "Checking for absence of " + file );
println "Checking for absence of " + file;
if ( file.exists() )
{
System.out.println( "FAILURE!" );
println "FAILURE!";
return false;
}
}

0 comments on commit f195acd

Please sign in to comment.