@UserImplemented public interface UpdateByCheckoutRules2 extends UpdatePolicy
UpdateByIncludeRules2interface if you do not need to handle checkout rules processing explicitly.
|Modifier and Type||Method and Description|
Called to update sources in the specified working directory.
void updateSources(@NotNull VcsRoot root, @NotNull CheckoutRules rules, @NotNull java.lang.String toVersion, @NotNull java.io.File destFolder, @NotNull AgentRunningBuild build, boolean cleanCheckoutRequested) throws VcsException
build- agent running build. You can get logger by requesting build.getBuildLogger()
cleanCheckoutRequested- true if clean checkout should be performed. Checkout directory itself will be already created by core. The flag also true if some include directory from checkout rules is missing comparing to the previous checkout.
destFolder- working directory where sources will be updated (root directory for the sources)
root- VCS root
toVersion- version to update sources to
rules- checkout rules to consider during sources updating the moment of updateSources call)
VcsException- if any error occurs preventing sources update