Class VcsSupportUtil

    • Method Detail

      • buildPatch

        @Deprecated
        public static void buildPatch​(VcsRoot root,
                                      java.lang.String fromVersion,
                                      java.lang.String toVersion,
                                      PatchBuilder builder,
                                      CheckoutRules checkoutRules,
                                      BuildPatchByIncludeRule patcher)
                               throws java.io.IOException,
                                      VcsException
        Deprecated.
        implement jetbrains.buildServer.vcs.BuildPatchByIncludeRules instead
        Service method, allows to build patch for each root include rule in the specified checkout rules
        Parameters:
        root - vcs root to build patch for
        fromVersion - version to build patch from
        toVersion - version to build patch to
        builder - patch builder
        checkoutRules - rules to build patch for (rules how to map repository file names to working ones)
        patcher - implementation, builds patch for one specified include rule
        Throws:
        java.io.IOException - exception occurred while sending patch to patch builder
        VcsException - exception occurred while getting patch from version control
      • exportFilesFromDisk

        public static void exportFilesFromDisk​(PatchBuilder builder,
                                               java.io.File file)
                                        throws java.io.IOException
        Exports whole directory content
        Parameters:
        builder - patch builder.
        file - root directory.
        Throws:
        java.io.IOException - listing or reading file problem occurred.