public interface GitArchiveBuilder extends GitCommandBuilderSupport<GitArchiveBuilder>
command
for running git archive.
git archive's -o and --output flags are intentionally not supported by this builder,
to discourage storing generated archives on the server. Should there by an explicit need to store an archive, the
caller can write a custom CommandOutputHandler to do so.
ENV_AUTHOR_DATE, ENV_AUTHOR_EMAIL, ENV_AUTHOR_NAME, ENV_COMMITTER_DATE, ENV_COMMITTER_EMAIL, ENV_COMMITTER_NAME| Modifier and Type | Method and Description |
|---|---|
GitArchiveBuilder |
clearPaths()
Clears any
paths which have been applied to filter the files included in the archive. |
GitArchiveBuilder |
format(GitArchiveFormat value)
Specifies the format for the generated archive.
|
GitArchiveBuilder |
path(String value)
Specifies a path to filter the files included in the archive.
|
GitArchiveBuilder |
paths(Iterable<String> values)
Specifies paths to filter the files included in the archive.
|
GitArchiveBuilder |
paths(String value,
String... values)
Specifies one or more paths to filter the files included in the archive.
|
GitArchiveBuilder |
prefix(String value)
Specifies a prefix to be applied to files included in the archive.
|
GitArchiveBuilder |
rev(String value)
Specifies the revision which should be archived.
|
alternate, alternates, alternates, author, author, author, build, committer, committer, committer, withConfiguration, withConfiguration, withConfiguration, withConfiguration@Nonnull GitArchiveBuilder clearPaths()
paths which have been applied to filter the files included in the archive.this@Nonnull GitArchiveBuilder format(@Nullable GitArchiveFormat value)
git archive
will be used.value - the desired format, or null to use the defaultthis@Nonnull GitArchiveBuilder path(@Nullable String value)
value - the filter path, which will be ignored if nullthis@Nonnull GitArchiveBuilder paths(@Nullable String value, @Nullable String... values)
value - the first filter path, which will be ignored if nullvalues - additional filter paths, which will be ignored if nullthis@Nonnull GitArchiveBuilder paths(@Nullable Iterable<String> values)
values - some number of filter paths, which will be ignored if nullthis@Nonnull GitArchiveBuilder prefix(@Nullable String value)
value - the prefix to use, or null to not apply a prefixthis@Nonnull GitArchiveBuilder rev(@Nonnull String value)
HEAD will be used
to archive the default branch for the repository.value - the revision to archivethisCopyright © 2019 Atlassian. All rights reserved.