-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use debug log level for listing ignored items - fix #182
- Loading branch information
1 parent
ddfdae9
commit 9f0693c
Showing
5 changed files
with
23 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
File file = new File( basedir, "build.log" ); | ||
assert file.exists(); | ||
File file = new File(basedir, "build.log") | ||
assert file.exists() | ||
|
||
String text = file.getText("utf-8"); | ||
String text = file.getText("utf-8") | ||
|
||
|
||
assert text.contains( '[INFO] Adding ignore: module-info' ) | ||
assert text.contains( '[DEBUG] Ignore: module-info maps to regex ^module-info(\\.class)?$' ) | ||
assert text.contains( '[INFO] Adding ignore: META-INF/versions/*/module-info' ) | ||
assert text.contains( '[DEBUG] Ignore: META-INF/versions/*/module-info maps to regex ^META-INF/versions/.*/module-info(\\.class)?$' ) | ||
assert text.contains( '[INFO] BUILD SUCCESS' ) | ||
|
||
return true; | ||
assert text.contains('[DEBUG] Ignore: module-info maps to regex ^module-info(\\.class)?$') | ||
assert text.contains('[DEBUG] Ignore: META-INF/versions/*/module-info maps to regex ^META-INF/versions/.*/module-info(\\.class)?$') | ||
assert text.contains('[INFO] BUILD SUCCESS') |
11 changes: 4 additions & 7 deletions
11
src/it/enforce-bytecode-version-module-info-jdk8/verify.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
File file = new File( basedir, "build.log" ); | ||
assert file.exists(); | ||
File file = new File(basedir, "build.log") | ||
assert file.exists() | ||
|
||
String text = file.getText("utf-8"); | ||
String text = file.getText("utf-8") | ||
|
||
assert text.contains( '[INFO] Adding ignore: module-info' ) | ||
assert text.contains( '[DEBUG] Ignore: module-info maps to regex ^module-info(\\.class)?$' ) | ||
|
||
return true; | ||
assert text.contains('[DEBUG] Ignore: module-info maps to regex ^module-info(\\.class)?$') |
12 changes: 5 additions & 7 deletions
12
src/it/enforce-bytecode-version-multirelease-2/verify.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
File file = new File( basedir, "build.log" ); | ||
assert file.exists(); | ||
File file = new File(basedir, "build.log") | ||
assert file.exists() | ||
|
||
String text = file.getText("utf-8"); | ||
String text = file.getText("utf-8") | ||
|
||
assert text.contains( '[INFO] Adding ignore: module-info' ) | ||
assert !text.contains( '[WARNING] Invalid bytecodeVersion for com.fasterxml.jackson.core:jackson-core:jar:2.13.0:runtime' ) | ||
|
||
return true; | ||
assert text.contains('[DEBUG] Ignore: module-info maps to regex ^module-info(\\.class)?$') | ||
assert !text.contains('[WARNING] Invalid bytecodeVersion for com.fasterxml.jackson.core:jackson-core:jar:2.13.0:runtime') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
File file = new File( basedir, "build.log" ); | ||
assert file.exists(); | ||
File file = new File(basedir, "build.log") | ||
assert file.exists() | ||
|
||
String text = file.getText("utf-8"); | ||
String text = file.getText("utf-8") | ||
|
||
assert text.contains( '[INFO] Adding ignore: module-info' ) | ||
assert text.contains( '[DEBUG] log4j-api-2.17.2.jar => ' ) | ||
|
||
return true; | ||
assert text.contains('[DEBUG] Ignore: module-info maps to regex ^module-info(\\.class)?$') | ||
assert text.contains('[DEBUG] log4j-api-2.17.2.jar => ') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters