org.apache.maven.scm.provider.bazaar.command

Class BazaarConsumer

public class BazaarConsumer extends AbstractConsumer

Base consumer to do common parsing for all bazaar commands.

More specific: log line each line if debug is enabled, get file status and detect warnings from bazaar

Author: Torbjxrn Eikli Smxrgrav

Constructor Summary
BazaarConsumer(ScmLogger logger)
Method Summary
voidconsumeLine(String line)
voiddoConsume(ScmFileStatus status, String trimmedLine)
StringgetStdErr()
Warnings and errors is usually printed out in Std.Err, thus for derived consumers operating on Std.Out this would typically return an empty string.

Constructor Detail

BazaarConsumer

public BazaarConsumer(ScmLogger logger)

Method Detail

consumeLine

public void consumeLine(String line)

doConsume

public void doConsume(ScmFileStatus status, String trimmedLine)

getStdErr

public String getStdErr()
Warnings and errors is usually printed out in Std.Err, thus for derived consumers operating on Std.Out this would typically return an empty string.

Returns: Return the last lines interpreted as an warning or an error

Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.