ScmService.createBuilder(Repository)
to prepare their git
processes, and those that do will continue to work without changes in 8.0.@Deprecated @NotThreadSafe public abstract class AbstractScmCommandBuilder<B extends com.atlassian.bitbucket.scm.ScmCommandBuilder<B>> extends AbstractCommandBuilder<B> implements com.atlassian.bitbucket.scm.ScmCommandBuilder<B>
AbstractCommandBuilder
and provides a basic implementation of ScmCommandBuilder
. As with
AbstractCommandBuilder
, CommandBuilderSupport.build(CommandOutputHandler)
must be implemented by the derived class.Modifier and Type | Field and Description |
---|---|
protected String |
command
Deprecated.
The SCM command to run when the binary is executed, such as "clone" or "diff".
|
arguments, binary, environment, errorHandler, exitHandler, i18nService, inputHandler, workDir, workingDirectory
Modifier | Constructor and Description |
---|---|
protected |
AbstractScmCommandBuilder(com.atlassian.bitbucket.i18n.I18nService i18nService,
String binary)
Deprecated.
Constructs a new
AbstractScmCommandBuilder and sets the I18nService to use for internationalising
error messages and the binary to execute. |
protected |
AbstractScmCommandBuilder(com.atlassian.bitbucket.i18n.I18nService i18nService,
String binary,
File workingDirectory)
Deprecated.
in 6.4 for removal in 8.0. Use
AbstractScmCommandBuilder(I18nService, String, Path) instead. |
protected |
AbstractScmCommandBuilder(com.atlassian.bitbucket.i18n.I18nService i18nService,
String binary,
Path workDir)
Deprecated.
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. |
Modifier and Type | Method and Description |
---|---|
B |
command(String value)
Deprecated.
|
argument, argumentAfter, argumentAt, argumentBefore, clearArguments, clearEnvironment, clearInputHandler, defaultErrorHandler, defaultExitHandler, defaultWorkDir, defaultWorkingDirectory, directoryExists, directoryExists, directoryExistsOrIsNull, directoryExistsOrIsNull, errorHandler, exitHandler, inputHandler, notBlank, notBlank, rawArgument, rawArgumentAfter, rawArgumentAt, rawArgumentBefore, removeEnvironment, self, withEnvironment, workDir, workDir, workingDirectory, workingDirectory, workingDirectory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected String command
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
.ScmCommandBuilder.command(String)
protected AbstractScmCommandBuilder(@Nonnull com.atlassian.bitbucket.i18n.I18nService i18nService, @Nonnull String binary)
AbstractScmCommandBuilder
and sets the I18nService
to use for internationalising
error messages and the binary
to execute.i18nService
- the I18nService
for internationalising error messagesbinary
- the binary to executeIllegalArgumentException
- if the provided binary
is empty or blankNullPointerException
- if the provided i18nService
or binary
is null
AbstractCommandBuilder.AbstractCommandBuilder(I18nService, String)
@Deprecated protected AbstractScmCommandBuilder(@Nonnull com.atlassian.bitbucket.i18n.I18nService i18nService, @Nonnull String binary, @Nullable File workingDirectory)
AbstractScmCommandBuilder(I18nService, String, Path)
instead.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 messagesbinary
- the binary to executeworkingDirectory
- the working directory for the command, or null
for the defaultIllegalArgumentException
- if the provided binary
is empty or blank, or if a working directory
is provided which does not exist or is not a directoryNullPointerException
- if the provided i18nService
or binary
is null
AbstractCommandBuilder.AbstractCommandBuilder(I18nService, String, File)
protected AbstractScmCommandBuilder(@Nonnull com.atlassian.bitbucket.i18n.I18nService i18nService, @Nonnull String binary, @Nullable Path workDir)
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 messagesbinary
- the binary to executeworkDir
- the working directory for the command, or null
for the defaultIllegalArgumentException
- if the provided binary
is empty or blank, or if a working directory
is provided which does not exist or is not a directoryNullPointerException
- if the provided i18nService
or binary
is null
AbstractCommandBuilder.AbstractCommandBuilder(I18nService, String, Path)
Copyright © 2021 Atlassian. All rights reserved.