You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When signatures are using classes that are not found on classpath, the option to ignore those warnings is no longer so noisy: It only lists all failed signatures separately where methods/fields do not exit, but the missing classes are reported only with a single line.
Copy file name to clipboardExpand all lines: src/test/antunit/TestInlineSignatures.xml
+2-2
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,7 @@
97
97
java.lang.String#forbiddenFoobarField @ should be ignored
98
98
java.awt.Color @ Color is disallowed, thats not bad, because ANT has no colors... (this was just added to don't fail because of missing signatures)
99
99
</forbiddenapis>
100
-
<au:assertLogContainslevel="warning"text="Class 'foo.bar.ForbiddenApis' not found on classpath while parsing signature: foo.bar.ForbiddenApis#testMethod() [signature ignored]"/>
100
+
<au:assertLogContainslevel="warning"text="Some signatures were ignored because the following classes were not found on classpath: foo.bar.ForbiddenApis"/>
101
101
<au:assertLogContainslevel="warning"text="Method not found while parsing signature: java.lang.String#forbiddenFoobarMethod() [signature ignored]"/>
102
102
<au:assertLogContainslevel="warning"text="Field not found while parsing signature: java.lang.String#forbiddenFoobarField [signature ignored]"/>
103
103
</target>
@@ -110,7 +110,7 @@
110
110
java.lang.String#forbiddenFoobarField @ should be ignored
111
111
java.awt.Color @ Color is disallowed, thats not bad, because ANT has no colors... (this was just added to don't fail because of missing signatures)
112
112
</forbiddenapis>
113
-
<au:assertLogContainslevel="warning"text="Class 'foo.bar.ForbiddenApis' not found on classpath while parsing signature: foo.bar.ForbiddenApis#testMethod() [signature ignored]"/>
113
+
<au:assertLogContainslevel="warning"text="Some signatures were ignored because the following classes were not found on classpath: foo.bar.ForbiddenApis"/>
114
114
<au:assertLogContainslevel="warning"text="Method not found while parsing signature: java.lang.String#forbiddenFoobarMethod() [signature ignored]"/>
115
115
<au:assertLogContainslevel="warning"text="Field not found while parsing signature: java.lang.String#forbiddenFoobarField [signature ignored]"/>
<au:assertLogContainstext="Class 'foo.bar.ForbiddenApis' not found on classpath while parsing signature: foo.bar.ForbiddenApis#testMethod() [signature ignored]"/>
87
+
<au:assertLogContainstext="Some signatures were ignored because the following classes were not found on classpath: foo.bar.ForbiddenApis"/>
88
88
<au:assertLogContainstext="Method not found while parsing signature: java.lang.String#forbiddenFoobarMethod() [signature ignored]"/>
89
89
<au:assertLogContainstext="Field not found while parsing signature: java.lang.String#forbiddenFoobarField [signature ignored]"/>
0 commit comments