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)
           
 java.util.Date findLatestDateFromCommits(java.util.List<Commit> 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)
           
 void updateCvs(java.lang.String vcsRevisionKey, java.io.File sourceDirectory, BuildLogger buildLogger, CVSRepository cvsRepository)
           
 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)
               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)
              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

getCommitsSince

@NotNull
public java.util.List<Commit> getCommitsSince(@NotNull
                                                      java.util.Date lastUpdate,
                                                      @NotNull
                                                      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<Commit> 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 © 2009 Atlassian Pty Ltd. All Rights Reserved.