Skip to content

Commit

Permalink
Parse raw xml resources for tools annotations.
Browse files Browse the repository at this point in the history
RELNOTES: None
PiperOrigin-RevId: 206960066
  • Loading branch information
corbinrsmith-work authored and Copybara-Service committed Aug 1, 2018
1 parent 0b534a8 commit fa26ecd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ public List<Path> call() throws Exception {
final String filename = interpolateAapt2Filename(qualifiers, file.getFileName().toString());

final List<Path> results = new ArrayList<>();
if (qualifiers.asFolderType().equals(ResourceFolderType.VALUES)) {
if (qualifiers.asFolderType().equals(ResourceFolderType.VALUES)
|| (qualifiers.asFolderType().equals(ResourceFolderType.RAW)
&& file.getFileName().toString().endsWith(".xml"))) {
extractAttributes(directoryName, filename, results);
}

Expand Down

0 comments on commit fa26ecd

Please sign in to comment.