Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Dec 4, 2024
1 parent 1c753e4 commit dcb9183
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/it/projects/mdep-839-list/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +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 escape codes
assert c != 27;
}
// no escape codes
assert !output.contains( '\u001B' )


Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,11 @@ private StringBuilder buildArtifactListOutput(
Set<Artifact> artifacts, boolean outputAbsoluteArtifactFilename, boolean theOutputScope, boolean theSort) {
StringBuilder sb = new StringBuilder();
List<String> artifactStringList = new ArrayList<>();
if (outputFile != null) {
// MessageUtils.setColorEnabled(false);
/* if (outputFile != null) {
MessageUtils.setColorEnabled(false);
} else {
MessageUtils.setColorEnabled(true);
}
} */
for (Artifact artifact : artifacts) {
MessageBuilder messageBuilder = MessageUtils.buffer();
messageBuilder.a(" ");
Expand Down Expand Up @@ -230,7 +230,7 @@ private StringBuilder buildArtifactListOutput(
}
}
}
artifactStringList.add(messageBuilder + System.lineSeparator());
artifactStringList.add(messageBuilder.build() + System.lineSeparator());
}
if (theSort) {
Collections.sort(artifactStringList);
Expand Down

0 comments on commit dcb9183

Please sign in to comment.