org.apache.maven.scm
Class ScmRequest
java.lang.Object
org.apache.maven.scm.ScmRequest
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- BlameScmRequest, ChangeLogScmRequest
public class ScmRequest
- extends Object
- implements Serializable
Base class for SCM wrapped parameters.
Unlike ScmResult
, this is mutable, as its use requires more flexibility when configuring the call.
Most parameters should be stored in parameters
field, as it makes them easy to pass
down to the implementation side.
Methods in descendant classes should perform all neccessary (un)marshalling so that user can work with nice
semantic typesafe properties.
- Since:
- 1.8
- Author:
- Petr Kozelka
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parameters
protected final CommandParameters parameters
ScmRequest
public ScmRequest()
ScmRequest
public ScmRequest(ScmRepository scmRepository,
ScmFileSet scmFileSet)
getScmRepository
public ScmRepository getScmRepository()
setScmRepository
public void setScmRepository(ScmRepository scmRepository)
- Parameters:
scmRepository
- the source control system
getScmFileSet
public ScmFileSet getScmFileSet()
setScmFileSet
public void setScmFileSet(ScmFileSet scmFileSet)
- The files being processed. Implementations can also work with all files from the
ScmFileSet.getBasedir()
downwards.
- Parameters:
scmFileSet
- working copy and its selected files
getCommandParameters
public CommandParameters getCommandParameters()
- Holds all parameter values passed to the implementing part.
These parameters are usually translated to commandline options or arguments.
- Returns:
- command parameters
Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.