Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Dec 4, 2024
1 parent 54c1268 commit 3c8d424
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/it/projects/mdep-839-list/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@ assert file.exists() : "output file $file does not exist"

String output = file.getText( "UTF-8" )
assert output.contains( 'The following files have been resolved:')
for (char c : output) { // no color codes
assert c >= 32 || c == '\n' || c == '\r' || c == '\t';
}

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.OpenOption;
import java.nio.file.Path;
import java.nio.file.StandardOpenOption;
import java.util.Objects;

Expand Down Expand Up @@ -230,8 +229,7 @@ public static synchronized void write(String string, File file, boolean append,
*/
public static synchronized void write(String string, File file, boolean append, String encoding)
throws IOException {
Path parent = Files.createDirectories(file.getParentFile().toPath());
System.err.println(parent.toAbsolutePath());
Files.createDirectories(file.getParentFile().toPath());

OpenOption appendOption = append ? StandardOpenOption.APPEND : StandardOpenOption.TRUNCATE_EXISTING;

Expand Down

0 comments on commit 3c8d424

Please sign in to comment.