FileDocCategorySizeDatePackage
BaseBuilderTest.javaAPI DocAndroid 1.5 API1369Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.adt.build

BaseBuilderTest

public class BaseBuilderTest extends TestCase

Fields Summary
Constructors Summary
Methods Summary
public voidtestParseAaptOutput()

        Pattern p = Pattern.compile( "^(.+):(\\d+):\\s(.+)$"); //$NON-NLS-1$
        String s = "C:\\java\\workspace-android\\AndroidApp\\res\\values\\strings.xml:11: WARNING: empty 'some warning text";

        Matcher m = p.matcher(s);
        assertEquals(true, m.matches());
        assertEquals("C:\\java\\workspace-android\\AndroidApp\\res\\values\\strings.xml", m.group(1));
        assertEquals("11", m.group(2));
        assertEquals("WARNING: empty 'some warning text", m.group(3));