OSDN Git Service

Handle AAPT error messages for skipping files
authorTor Norbye <tnorbye@google.com>
Tue, 11 Oct 2011 00:45:54 +0000 (17:45 -0700)
committerTor Norbye <tnorbye@google.com>
Thu, 13 Oct 2011 04:13:04 +0000 (21:13 -0700)
commitecc5727af3e677699c7c62f1f62aed4d36e7c0f0
tree2a1f6dd99f315d238c61b7ff8c7c2afca9ecfcce
parent185cc24428a19bf5e5c1973da9a4d3b5396ca315
Handle AAPT error messages for skipping files

If the AAPT error parser encounters an error message it is unfamiliar
with, then it aborts out of the parser and just emits all the output
from aapt in the Console instead.

I just ran into a scenario where this happens if your project contains
an XML file with an invalid name, such as a layout whose name starts
with an underscore.

This changeset adds a regexp to recognize these errors such that the
other AAPT errors show up in the Problems view, and you can click to
jump to the offending file for the skipping error.

Change-Id: I884fdb6fdbdfcaa3adbef68bc96e722036e88996
eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/AaptParser.java