com.atlassian.maven.plugins.sourcerelease.mojos.git
Class GitScmProviderUtils

java.lang.Object
  extended by com.atlassian.maven.plugins.sourcerelease.mojos.git.GitScmProviderUtils

public class GitScmProviderUtils
extends Object


Constructor Summary
GitScmProviderUtils()
           
 
Method Summary
static org.apache.maven.scm.command.export.ExportScmResult export(File temporaryDirectory, RepositoryAndPath repoAndSubdir, Ref ref, File targetDirectory)
           
static org.apache.maven.scm.command.export.ExportScmResult export(File temporaryDirectory, RepositoryAndPath repoAndSubdir, String tag, File targetDirectory)
           
static org.apache.maven.scm.command.export.ExportScmResult export(File temporaryDirectory, String providerRepositoryUrl, Ref ref, File targetDirectory)
           
static org.apache.maven.scm.command.export.ExportScmResult export(File temporaryDirectory, String providerRepositoryUrl, String tag, File targetDirectory)
          Deprecated. since 1.6 use GitScmProviderUtils#export(File, String, ref, File) instead.
static org.apache.maven.scm.command.export.ExportScmResult extractFromTarFile(File tarfile, String path, File target)
          Extract a subdirectory from a tar file.
static org.apache.maven.project.MavenProject findRootProjectInSameRepository(org.apache.maven.project.MavenProject subproject)
          Find the most senior parent project with an SCM connection that's in the same Git repository as this one.
static Ref refForProject(org.apache.maven.project.MavenProject p, String productBranchName, CheckoutFromTagFilter filter)
           
static String tagForProject(org.apache.maven.project.MavenProject p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GitScmProviderUtils

public GitScmProviderUtils()
Method Detail

extractFromTarFile

public static org.apache.maven.scm.command.export.ExportScmResult extractFromTarFile(File tarfile,
                                                                                     String path,
                                                                                     File target)
                                                                              throws IOException,
                                                                                     InterruptedException
Extract a subdirectory from a tar file. If the path is the empty string it will be treated as the root of the archive. Otherwise, it will be the name of a subdirectory. The contents will be extracted to the directory 'target', which will be created.

Throws:
IOException
InterruptedException

refForProject

public static Ref refForProject(org.apache.maven.project.MavenProject p,
                                String productBranchName,
                                CheckoutFromTagFilter filter)

tagForProject

public static String tagForProject(org.apache.maven.project.MavenProject p)

findRootProjectInSameRepository

public static org.apache.maven.project.MavenProject findRootProjectInSameRepository(org.apache.maven.project.MavenProject subproject)
Find the most senior parent project with an SCM connection that's in the same Git repository as this one.


export

public static org.apache.maven.scm.command.export.ExportScmResult export(File temporaryDirectory,
                                                                         String providerRepositoryUrl,
                                                                         Ref ref,
                                                                         File targetDirectory)
                                                                  throws org.apache.maven.scm.ScmException
Throws:
org.apache.maven.scm.ScmException

export

@Deprecated
public static org.apache.maven.scm.command.export.ExportScmResult export(File temporaryDirectory,
                                                                                    String providerRepositoryUrl,
                                                                                    String tag,
                                                                                    File targetDirectory)
                                                                  throws org.apache.maven.scm.ScmException
Deprecated. since 1.6 use GitScmProviderUtils#export(File, String, ref, File) instead.

Throws:
org.apache.maven.scm.ScmException

export

public static org.apache.maven.scm.command.export.ExportScmResult export(File temporaryDirectory,
                                                                         RepositoryAndPath repoAndSubdir,
                                                                         String tag,
                                                                         File targetDirectory)
                                                                  throws org.apache.maven.scm.ScmException
Throws:
org.apache.maven.scm.ScmException

export

public static org.apache.maven.scm.command.export.ExportScmResult export(File temporaryDirectory,
                                                                         RepositoryAndPath repoAndSubdir,
                                                                         Ref ref,
                                                                         File targetDirectory)
                                                                  throws org.apache.maven.scm.ScmException
Throws:
org.apache.maven.scm.ScmException


Copyright © 2011 Atlassian. All Rights Reserved.