Package org.apache.maven.scm
Class ScmRequest
java.lang.Object
org.apache.maven.scm.ScmRequest
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BlameScmRequest
,ChangeLogScmRequest
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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionHolds all parameter values passed to the implementing part.void
setScmFileSet
(ScmFileSet scmFileSet) The files being processed.void
setScmRepository
(ScmRepository scmRepository)
-
Field Details
-
parameters
-
-
Constructor Details
-
ScmRequest
public ScmRequest() -
ScmRequest
-
-
Method Details
-
getScmRepository
-
setScmRepository
- Parameters:
scmRepository
- the source control system
-
getScmFileSet
-
setScmFileSet
The files being processed. Implementations can also work with all files from theScmFileSet.getBasedir()
downwards.- Parameters:
scmFileSet
- working copy and its selected files
-
getCommandParameters
Holds all parameter values passed to the implementing part. These parameters are usually translated to commandline options or arguments.- Returns:
- command parameters
-