Commit 55a2366
committed
[Xamarin.Android.Build.Tasks] <Aapt /> task showing warnings as errors
Fixes: #1134
Context: 2135856
Dean's changes in 2135856 were more accurate at picking out warnings
& errors, but if the `level` value from the `Regex` was blank, it was
counting the message as an error. The `level` value is matching against
the words `warning` or `error`, ignoring case.
I think the fix here is to count the message as a warning if the
`level` is blank.
I added a Regex test case of what was on #1134. I added another test case
that verifies a message with a blank `level` comes through the build output
as a `warning`, not giving an `APT0000` error.1 parent 59cfa5d commit 55a2366
File tree
3 files changed
+24
-1
lines changed- src/Xamarin.Android.Build.Tasks
- Tasks
- Tests/Xamarin.Android.Build.Tests
3 files changed
+24
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
374 | | - | |
| 374 | + | |
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
77 | 85 | | |
78 | 86 | | |
79 | 87 | | |
| |||
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
186 | 201 | | |
187 | 202 | | |
188 | 203 | | |
| |||
0 commit comments