com.atlassian.bamboo.testutils
Class SvnRepositoryHelper

java.lang.Object
  extended by com.atlassian.bamboo.testutils.SvnRepositoryHelper

public class SvnRepositoryHelper
extends java.lang.Object

A helper classs that executes some common commands on the Bamboo test module. Dumps various logging to System.out


Field Summary
static java.lang.String PATH_TO_TOUCH
           
static java.lang.String SVN_TEST_LOGIN_NAME
           
static java.lang.String SVN_TEST_LOGIN_PW
           
 
Constructor Summary
SvnRepositoryHelper()
           
 
Method Summary
static void lockSvnFastBuild(java.lang.String planKey, java.lang.String bambooHome)
          For the given plan creates a SVN lock by trying to commit a file and aborting immediately.
static void touchSvnBuild(java.lang.String repositoryRoot, java.lang.String subpath, java.lang.String commitComment, java.lang.String pathToTouch)
           
static void touchSvnFastBuild(java.lang.String repositoryRoot)
          Updates the build.xml file in the /testBuild/fastBuild sub dir (adding a space) and checks it in with default comment
static void touchSvnFastBuild(java.lang.String repositoryRoot, java.lang.String commitComment)
          Updates the build.xml file in the /fastBuild sub dir (adding a space) and checks it in
static void touchSvnFastBuild(java.lang.String repositoryRoot, java.lang.String commitComment, java.lang.String pathToTouch)
          Updates a file in the /fastBuild sub dir and checks it in
static void touchSvnLongBuild(java.lang.String repositoryRoot)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PATH_TO_TOUCH

public static final java.lang.String PATH_TO_TOUCH
See Also:
Constant Field Values

SVN_TEST_LOGIN_NAME

public static final java.lang.String SVN_TEST_LOGIN_NAME

SVN_TEST_LOGIN_PW

public static final java.lang.String SVN_TEST_LOGIN_PW
Constructor Detail

SvnRepositoryHelper

public SvnRepositoryHelper()
Method Detail

touchSvnFastBuild

public static void touchSvnFastBuild(java.lang.String repositoryRoot,
                                     java.lang.String commitComment)
                              throws java.io.IOException,
                                     java.lang.InterruptedException
Updates the build.xml file in the /fastBuild sub dir (adding a space) and checks it in

Parameters:
repositoryRoot -
commitComment - @throws IOException
Throws:
java.io.IOException
java.lang.InterruptedException

touchSvnFastBuild

public static void touchSvnFastBuild(java.lang.String repositoryRoot,
                                     java.lang.String commitComment,
                                     java.lang.String pathToTouch)
                              throws java.io.IOException,
                                     java.lang.InterruptedException
Updates a file in the /fastBuild sub dir and checks it in

Parameters:
commitComment -
pathToTouch - - the path (file) to update.
Throws:
java.io.IOException
java.lang.InterruptedException

touchSvnBuild

public static void touchSvnBuild(java.lang.String repositoryRoot,
                                 java.lang.String subpath,
                                 java.lang.String commitComment,
                                 java.lang.String pathToTouch)
                          throws java.io.IOException,
                                 java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException

touchSvnLongBuild

public static void touchSvnLongBuild(java.lang.String repositoryRoot)
                              throws java.io.IOException,
                                     java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException

touchSvnFastBuild

public static void touchSvnFastBuild(java.lang.String repositoryRoot)
                              throws java.io.IOException,
                                     java.lang.InterruptedException
Updates the build.xml file in the /testBuild/fastBuild sub dir (adding a space) and checks it in with default comment

Parameters:
repositoryRoot -
Throws:
java.io.IOException
java.lang.InterruptedException

lockSvnFastBuild

public static void lockSvnFastBuild(java.lang.String planKey,
                                    java.lang.String bambooHome)
                             throws java.io.IOException
For the given plan creates a SVN lock by trying to commit a file and aborting immediately.

Parameters:
planKey -
bambooHome -
Throws:
java.io.IOException


Copyright © 2011 Atlassian. All Rights Reserved.