com.atlassian.bamboo.repository.cvsimpl
Class CvsRepositoryManager

java.lang.Object
  extended by com.atlassian.bamboo.repository.cvsimpl.CvsRepositoryManager

public class CvsRepositoryManager
extends java.lang.Object


Constructor Summary
CvsRepositoryManager()
           
 
Method Summary
 void checkout(java.lang.String vcsRevisionKey, java.io.File sourceDirectory, BuildLogger buildLogger, CVSRepository cvsRepository, boolean recursive, BuildContext buildContext)
           
 void checkout(java.lang.String vcsRevisionKey, java.io.File sourceDirectory, BuildLogger buildLogger, CVSRepository cvsRepository, BuildContext buildContext)
           
 java.util.Date findLatestDateFromCommits(java.util.List<? extends CommitContext> commits)
          Loops through all the commits and returns the latest date.
 java.util.List<Commit> getCommitsSince(java.util.Date lastUpdate, java.lang.String clientPath, BuildLogger buildLogger, CVSRepository cvsRepository)
           
protected  org.netbeans.lib.cvsclient.command.GlobalOptions getGlobalOptions(CVSRepository cvsRepository)
           
 org.netbeans.lib.cvsclient.CVSRoot getPasswordConfiguredCvsRoot(java.lang.String cvsRootString, java.lang.String password)
           
 CVSRepository.SymbolicNameType getSymbolicNameType(java.lang.String clientPath, BuildLogger buildLogger, CVSRepository cvsRepository)
          Execute cvs rtag -h -l modulename operation and gather information about available symbolic revisions.
 void updateCvs(java.lang.String vcsRevisionKey, java.io.File sourceDirectory, BuildLogger buildLogger, CVSRepository cvsRepository, BuildContext buildContext)
           
 void validateCvsRoot(ErrorCollection errorCollection, java.lang.String cvsRoot, java.lang.String password)
           
 void validateCvsRoot(ErrorCollection errorCollection, java.lang.String cvsRoot, java.lang.String passphrase, java.lang.String keyFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CvsRepositoryManager

public CvsRepositoryManager()
Method Detail

updateCvs

public void updateCvs(@Nullable
                      java.lang.String vcsRevisionKey,
                      @NotNull
                      java.io.File sourceDirectory,
                      @NotNull
                      BuildLogger buildLogger,
                      @NotNull
                      CVSRepository cvsRepository,
                      @NotNull
                      BuildContext buildContext)
               throws org.netbeans.lib.cvsclient.command.CommandException,
                      org.netbeans.lib.cvsclient.connection.AuthenticationException
Throws:
org.netbeans.lib.cvsclient.command.CommandException
org.netbeans.lib.cvsclient.connection.AuthenticationException

checkout

public void checkout(@Nullable
                     java.lang.String vcsRevisionKey,
                     @NotNull
                     java.io.File sourceDirectory,
                     @NotNull
                     BuildLogger buildLogger,
                     @NotNull
                     CVSRepository cvsRepository,
                     @Nullable
                     BuildContext buildContext)
              throws org.netbeans.lib.cvsclient.command.CommandException,
                     org.netbeans.lib.cvsclient.connection.AuthenticationException
Throws:
org.netbeans.lib.cvsclient.command.CommandException
org.netbeans.lib.cvsclient.connection.AuthenticationException

checkout

public void checkout(@Nullable
                     java.lang.String vcsRevisionKey,
                     @NotNull
                     java.io.File sourceDirectory,
                     @NotNull
                     BuildLogger buildLogger,
                     @NotNull
                     CVSRepository cvsRepository,
                     boolean recursive,
                     @Nullable
                     BuildContext buildContext)
              throws org.netbeans.lib.cvsclient.command.CommandException,
                     org.netbeans.lib.cvsclient.connection.AuthenticationException
Throws:
org.netbeans.lib.cvsclient.command.CommandException
org.netbeans.lib.cvsclient.connection.AuthenticationException

getSymbolicNameType

public CVSRepository.SymbolicNameType getSymbolicNameType(@Nullable
                                                          java.lang.String clientPath,
                                                          @NotNull
                                                          BuildLogger buildLogger,
                                                          @NotNull
                                                          CVSRepository cvsRepository)
                                                   throws java.lang.Exception
Execute cvs rtag -h -l modulename operation and gather information about available symbolic revisions. Then check if cvsRepository.getBranchName() was found in either branch names or tag names.

Parameters:
clientPath - Local path for CVS client
buildLogger - Logger
cvsRepository - CVSRepository object
Returns:
Type of the symbolic name
Throws:
java.lang.Exception

getCommitsSince

@NotNull
public java.util.List<Commit> getCommitsSince(@NotNull
                                                      java.util.Date lastUpdate,
                                                      @Nullable
                                                      java.lang.String clientPath,
                                                      @NotNull
                                                      BuildLogger buildLogger,
                                                      @NotNull
                                                      CVSRepository cvsRepository)
                                       throws org.netbeans.lib.cvsclient.connection.AuthenticationException,
                                              org.netbeans.lib.cvsclient.command.CommandException
Throws:
org.netbeans.lib.cvsclient.connection.AuthenticationException
org.netbeans.lib.cvsclient.command.CommandException

findLatestDateFromCommits

@Nullable
public java.util.Date findLatestDateFromCommits(@NotNull
                                                         java.util.List<? extends CommitContext> commits)
Loops through all the commits and returns the latest date. Null if no dates found

Parameters:
commits -
Returns:

getPasswordConfiguredCvsRoot

@NotNull
public org.netbeans.lib.cvsclient.CVSRoot getPasswordConfiguredCvsRoot(@NotNull
                                                                               java.lang.String cvsRootString,
                                                                               @Nullable
                                                                               java.lang.String password)

validateCvsRoot

public void validateCvsRoot(ErrorCollection errorCollection,
                            java.lang.String cvsRoot,
                            java.lang.String passphrase,
                            java.lang.String keyFile)

validateCvsRoot

public void validateCvsRoot(ErrorCollection errorCollection,
                            java.lang.String cvsRoot,
                            java.lang.String password)

getGlobalOptions

protected org.netbeans.lib.cvsclient.command.GlobalOptions getGlobalOptions(CVSRepository cvsRepository)


Copyright © 2012 Atlassian. All Rights Reserved.