com.atlassian.bamboo.repository.perforce
Class PerforceRepositoryMavenPomAccessor

java.lang.Object
  extended by com.atlassian.bamboo.repository.MavenPomAccessorAbstract<PerforceRepository>
      extended by com.atlassian.bamboo.repository.perforce.PerforceRepositoryMavenPomAccessor
All Implemented Interfaces:
MavenPomAccessor

public class PerforceRepositoryMavenPomAccessor
extends MavenPomAccessorAbstract<PerforceRepository>


Field Summary
 
Fields inherited from class com.atlassian.bamboo.repository.MavenPomAccessorAbstract
repository
 
Constructor Summary
PerforceRepositoryMavenPomAccessor(PerforceRepository repository)
           
 
Method Summary
 java.io.File checkoutMavenPom(java.io.File destinationPath)
          Checkout Maven POM and return File pointing to the project file
 java.lang.String getMavenScmProviderKey()
          Return Maven's SCM provider key for this repository type.
 void parseMavenScmUrl(java.lang.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
 

Constructor Detail

PerforceRepositoryMavenPomAccessor

public PerforceRepositoryMavenPomAccessor(@NotNull
                                          PerforceRepository repository)
Method Detail

getMavenScmProviderKey

@NotNull
public java.lang.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
                             java.lang.String mavenScmUrl)
                      throws java.lang.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:
java.lang.IllegalArgumentException - When SCM URL string cannot be parsed

checkoutMavenPom

@NotNull
public java.io.File checkoutMavenPom(@NotNull
                                             java.io.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 © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.