| 1 |
file = new File(basedir, "build.log") |
| 2 |
assert file.exists() |
| 3 |
execLine = file.readLines().find { line -> line.contains( ' Running : ajc ' ) } |
| 4 |
assert execLine != null |
| 5 |
assert execLine.contains( " -Xlintfile " ) |
| 6 |
assert execLine.contains( "XlintTestFile.properties" ) |
| 7 |
text = file.getText() |
| 8 |
//Xlint:adviceDidNotMatch set to ignore |
| 9 |
assert !text.contains("[Xlint:adviceDidNotMatch]") |
| 10 |
//WARNING level is default for Xlint:invalidAbsoluteTypeName |
| 11 |
assert text.contains("[WARNING] no match for this type name: Clazzz [Xlint:invalidAbsoluteTypeName]") |