java.lang.Object | ||
↳ | com.atlassian.bitbucket.scm.AbstractCommandBuilder<B extends com.atlassian.bitbucket.scm.CommandBuilder<B>> | |
↳ | com.atlassian.bitbucket.scm.AbstractScmCommandBuilder<B extends com.atlassian.bitbucket.scm.ScmCommandBuilder<B>> |
Extends AbstractCommandBuilder
and provides a basic implementation of ScmCommandBuilder. As with
AbstractCommandBuilder
, build(CommandOutputHandler)
must be implemented by the derived class.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
command | The SCM command to run when the binary is executed, such as "clone" or "diff". |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new
AbstractScmCommandBuilder and sets the I18nService to use for internationalising
error messages and the binary to execute. | |||||||||||
This constructor is deprecated.
in 6.4 for removal in 7.0. Use
AbstractScmCommandBuilder(I18nService, String, Path) instead.
| |||||||||||
Constructs a new
AbstractScmCommandBuilder , sets the I18nService to use for internationalising
error messages and the binary to execute, and optionally sets the workingDirectory where it
should be executed. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
The SCM command to run when the binary is executed, such as "clone" or "diff". This field may be null
,
but when it is implementations should apply the first argument
as the command when building
the Command. If no command was set and there are no arguments, implementations are encouraged to throw
an IllegalStateException
.
Constructs a new AbstractScmCommandBuilder
and sets the I18nService
to use for internationalising
error messages and the binary
to execute.
i18nService | the I18nService for internationalising error messages |
---|---|
binary | the binary to execute |
IllegalArgumentException | if the provided binary is empty or blank |
---|---|
NullPointerException | if the provided i18nService or binary is null |
This constructor is deprecated.
in 6.4 for removal in 7.0. Use AbstractScmCommandBuilder(I18nService, String, Path)
instead.
Constructs a new AbstractScmCommandBuilder
, sets the I18nService
to use for internationalising
error messages and the binary
to execute, and optionally sets the workingDirectory
where it
should be executed.
i18nService | the I18nService for internationalising error messages |
---|---|
binary | the binary to execute |
workingDirectory | the working directory for the command, or null for the default |
IllegalArgumentException | if the provided binary is empty or blank, or if a working directory
is provided which does not exist or is not a directory |
---|---|
NullPointerException | if the provided i18nService or binary is null |
Constructs a new AbstractScmCommandBuilder
, sets the I18nService
to use for internationalising
error messages and the binary
to execute, and optionally sets the workingDirectory
where it
should be executed.
i18nService | the I18nService for internationalising error messages |
---|---|
binary | the binary to execute |
workDir | the working directory for the command, or null for the default |
IllegalArgumentException | if the provided binary is empty or blank, or if a working directory
is provided which does not exist or is not a directory |
---|---|
NullPointerException | if the provided i18nService or binary is null |