Commit 2135856
[Xamarin.Android.Build.Tasks] APT0000 errors are for *errors* (#1047)
Fixes: https://devdiv.visualstudio.com/DevDiv/_workitems?id=528572
The current Regex was capturing output which was not an error or a
warning. It turns out that `aapt` is not very consistent with its
error messaging: sometimes it uses `error`, other times it uses
`Error` or `ERROR`.
Or in the worse case, they don't flag it as anything.
This commit adds a few more tests to `AndroidRegExTests` as well as
alters the logic in the `<Aapt/>` task a bit as well. This logic will
only log an error if:
1. We have an error `level` group, or
2. we have a `file` name group and `line` number group.
This seems to be fairly consistent when looking at the `aapt` source
code.
We also update the tests to add a few extra `Known` errors which the
regex might not pick. This is because they do not contain a `level`
or a `file` and `line` number.1 parent 33b6c95 commit 2135856
File tree
3 files changed
+72
-13
lines changed- src/Xamarin.Android.Build.Tasks
- Tasks
- Tests/Xamarin.Android.Build.Tests
3 files changed
+72
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
| 372 | + | |
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
399 | 395 | | |
400 | 396 | | |
401 | | - | |
| 397 | + | |
402 | 398 | | |
403 | 399 | | |
404 | 400 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
Lines changed: 64 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
62 | 125 | | |
63 | 126 | | |
64 | 127 | | |
| |||
0 commit comments