OSDN Git Service

AI 146229: Fix aidl error parsing (BUG #1789273)
authorXavier Ducrohet <>
Tue, 14 Apr 2009 22:57:23 +0000 (15:57 -0700)
committerThe Android Open Source Project <initial-contribution@android.com>
Tue, 14 Apr 2009 22:57:23 +0000 (15:57 -0700)
  BUG=1789273

Automated import of CL 146229

eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/build/PreCompilerBuilder.java

index d4b525f..9257f25 100644 (file)
@@ -72,8 +72,10 @@ public class PreCompilerBuilder extends BaseBuilder {
     /**
      * Single line aidl error<br>
      * "&lt;path&gt;:&lt;line&gt;: &lt;error&gt;"
+     * or
+     * "&lt;path&gt;:&lt;line&gt; &lt;error&gt;"
      */
-    private static Pattern sAidlPattern1 = Pattern.compile("^(.+?):(\\d+):\\s(.+)$"); //$NON-NLS-1$
+    private static Pattern sAidlPattern1 = Pattern.compile("^(.+?):(\\d+):?\\s(.+)$"); //$NON-NLS-1$
 
     /**
      * Data to temporarly store aidl source file information