com.atlassian.bamboo.repository.cvsimpl
Class CvsRepositoryManager

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

public class CvsRepositoryManager
extends Object


Constructor Summary
CvsRepositoryManager()
           
 
Method Summary
 void checkout(String vcsRevisionKey, File sourceDirectory, BuildLogger buildLogger, CVSRepository cvsRepository, boolean recursive, BuildContext buildContext)
           
 void checkout(String vcsRevisionKey, File sourceDirectory, BuildLogger buildLogger, CVSRepository cvsRepository, BuildContext buildContext)
           
 Date findLatestDateFromCommits(List<? extends CommitContext> commits)
          Loops through all the commits and returns the latest date.
 List<Commit> getCommitsSince(Date lastUpdate, String clientPath, BuildLogger buildLogger, CVSRepository cvsRepository)
           
protected  org.netbeans.lib.cvsclient.command.GlobalOptions getGlobalOptions(CVSRepository cvsRepository)
           
 org.netbeans.lib.cvsclient.CVSRoot getPasswordConfiguredCvsRoot(String cvsRootString, String password)
           
 CVSRepository.SymbolicNameType getSymbolicNameType(String clientPath, BuildLogger buildLogger, CVSRepository cvsRepository)
          Execute cvs rtag -h -l modulename operation and gather information about available symbolic revisions.
 void updateCvs(String vcsRevisionKey, File sourceDirectory, BuildLogger buildLogger, CVSRepository cvsRepository, BuildContext buildContext)
           
 void validateCvsRoot(ErrorCollection errorCollection, String cvsRoot, String password)
           
 void validateCvsRoot(ErrorCollection errorCollection, String cvsRoot, String passphrase, 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
                      String vcsRevisionKey,
                      @NotNull
                      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
                     String vcsRevisionKey,
                     @NotNull
                     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
                     String vcsRevisionKey,
                     @NotNull
                     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
                                                          String clientPath,
                                                          @NotNull
                                                          BuildLogger buildLogger,
                                                          @NotNull
                                                          CVSRepository cvsRepository)
                                                   throws 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:
Exception

getCommitsSince

@NotNull
public List<Commit> getCommitsSince(@NotNull
                                            Date lastUpdate,
                                            @Nullable
                                            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 Date findLatestDateFromCommits(@NotNull
                                               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
                                                                               String cvsRootString,
                                                                               @Nullable
                                                                               String password)

validateCvsRoot

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

validateCvsRoot

public void validateCvsRoot(ErrorCollection errorCollection,
                            String cvsRoot,
                            String password)

getGlobalOptions

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


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