com.atlassian.bamboo.plugins.git
Class GitMavenPomAccessor

java.lang.Object
  extended by com.atlassian.bamboo.repository.MavenPomAccessorAbstract<GitRepository>
      extended by com.atlassian.bamboo.plugins.git.GitMavenPomAccessor
All Implemented Interfaces:
MavenPomAccessor

public class GitMavenPomAccessor
extends MavenPomAccessorAbstract<GitRepository>


Field Summary
static String POM_XML
           
 
Constructor Summary
protected GitMavenPomAccessor(GitRepository repository, SshProxyService sshProxyService, com.atlassian.sal.api.message.I18nResolver i18nResolver, String gitCapability)
           
 
Method Summary
 File checkoutMavenPom(File destinationPath)
          Checkout Maven POM and return File pointing to the project file
 String getMavenScmProviderKey()
          Return Maven's SCM provider key for this repository type.
 void parseMavenScmUrl(String mavenScmUrl)
          Parse and setup internal structures from Maven's SCM URL provider specific part.
 
Methods inherited from class com.atlassian.bamboo.repository.MavenPomAccessorAbstract
getMavenPomCheckoutAccessEditHtml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POM_XML

public static final String POM_XML
See Also:
Constant Field Values
Constructor Detail

GitMavenPomAccessor

protected GitMavenPomAccessor(GitRepository repository,
                              @NotNull
                              SshProxyService sshProxyService,
                              @NotNull
                              com.atlassian.sal.api.message.I18nResolver i18nResolver,
                              @Nullable
                              String gitCapability)
Method Detail

getMavenScmProviderKey

@NotNull
public String getMavenScmProviderKey()
Description copied from interface: MavenPomAccessor
Return Maven's SCM provider key for this repository type.

Returns:
Maven's SCM provider key

parseMavenScmUrl

public void parseMavenScmUrl(@NotNull
                             String mavenScmUrl)
                      throws IllegalArgumentException
Description copied from interface: MavenPomAccessor
Parse and setup internal structures from Maven's SCM URL provider specific part. Maven SCM URL format is defined in http://maven.apache.org/scm/scm-url-format.html

Parameters:
mavenScmUrl - Provider specific part of Maven SCM URL
Throws:
IllegalArgumentException - When SCM URL string cannot be parsed

checkoutMavenPom

@NotNull
public File checkoutMavenPom(@NotNull
                                     File destinationPath)
                      throws RepositoryException
Description copied from interface: MavenPomAccessor
Checkout Maven POM and return File pointing to the project file

Parameters:
destinationPath - Checkout destination
Returns:
File object referencing Maven project file
Throws:
RepositoryException - In case of repository access problems


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.