Class JazzAddConsumer
- java.lang.Object
-
- org.apache.maven.scm.util.AbstractConsumer
-
- org.apache.maven.scm.provider.jazz.command.consumer.AbstractRepositoryConsumer
-
- org.apache.maven.scm.provider.jazz.command.add.JazzAddConsumer
-
- All Implemented Interfaces:
org.codehaus.plexus.util.cli.StreamConsumer
public class JazzAddConsumer extends AbstractRepositoryConsumer
Consume the output of the scm command for the "add" operation.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<ScmFile>
fCheckedInFiles
protected java.lang.String
fCurrentDir
private boolean
haveSeenChanges
-
Fields inherited from class org.apache.maven.scm.provider.jazz.command.consumer.AbstractRepositoryConsumer
fed
-
-
Constructor Summary
Constructors Constructor Description JazzAddConsumer(ScmProviderRepository repository, ScmLogger logger)
Construct the JazzAddCommand consumer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
consumeLine(java.lang.String line)
Process one line of output from the execution of the "scm xxxx" command.java.util.List<ScmFile>
getFiles()
protected ScmFile
getScmFile(java.lang.String filename)
-
Methods inherited from class org.apache.maven.scm.provider.jazz.command.consumer.AbstractRepositoryConsumer
getRepository, isFed, setFed, setRepository
-
Methods inherited from class org.apache.maven.scm.util.AbstractConsumer
getLogger, parseDate, parseDate, setLogger
-
-
-
-
Field Detail
-
haveSeenChanges
private boolean haveSeenChanges
-
fCurrentDir
protected java.lang.String fCurrentDir
-
fCheckedInFiles
private java.util.List<ScmFile> fCheckedInFiles
-
-
Constructor Detail
-
JazzAddConsumer
public JazzAddConsumer(ScmProviderRepository repository, ScmLogger logger)
Construct the JazzAddCommand consumer.- Parameters:
repository
- The repository we are working with.logger
- The logger to use.
-
-
Method Detail
-
consumeLine
public void consumeLine(java.lang.String line)
Process one line of output from the execution of the "scm xxxx" command.- Specified by:
consumeLine
in interfaceorg.codehaus.plexus.util.cli.StreamConsumer
- Overrides:
consumeLine
in classAbstractRepositoryConsumer
- Parameters:
line
- The line of output from the external command that has been pumped to us.- See Also:
StreamConsumer.consumeLine(java.lang.String)
-
getScmFile
protected ScmFile getScmFile(java.lang.String filename)
-
getFiles
public java.util.List<ScmFile> getFiles()
-
-