com.pmease.quickbuild.repositorysupport
Class ProofBuildSupport<T extends LocalChange>

java.lang.Object
  extended by com.pmease.quickbuild.repositorysupport.ProofBuildSupport<T>
All Implemented Interfaces:
java.io.Serializable

public abstract class ProofBuildSupport<T extends LocalChange>
extends java.lang.Object
implements java.io.Serializable

Implement this interface to provide proof build support for a repository.

See Also:
Repository#getProofBuildSupport()}, Serialized Form

Constructor Summary
ProofBuildSupport()
           
 
Method Summary
abstract  void buildFinished()
          In case of a proof build, if the condition returned by getProofBuildSetting().getCommitCondition() is satisfied, this method will be called to commit local change in user's working copies after the build is finished.
abstract  java.io.File getCheckoutFile(java.lang.String repositoryPath)
          Get the corresponding file/directory on disk when specified repository path is checked out.
abstract  T getLocalChange(java.io.File changeStoreDir)
          In case of a proof build, this method will be run on user's desktop to collect local change of the repository
 ProofCondition getProofCondition()
           
 void setProofCondition(ProofCondition proofCondition)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProofBuildSupport

public ProofBuildSupport()
Method Detail

getProofCondition

@NotNull
public ProofCondition getProofCondition()

setProofCondition

public void setProofCondition(ProofCondition proofCondition)

getLocalChange

public abstract T getLocalChange(java.io.File changeStoreDir)
In case of a proof build, this method will be run on user's desktop to collect local change of the repository

Parameters:
changeStoreDir - this directory is used to hold changed files, and will be sent to QuickBuild server to merge with trunk of the repository.
Returns:
change describing the local change. Please note that all paths in this object stands for paths in the repository instead of paths on local disk.

buildFinished

public abstract void buildFinished()
In case of a proof build, if the condition returned by getProofBuildSetting().getCommitCondition() is satisfied, this method will be called to commit local change in user's working copies after the build is finished.


getCheckoutFile

public abstract java.io.File getCheckoutFile(java.lang.String repositoryPath)
Get the corresponding file/directory on disk when specified repository path is checked out. This method should work even if the repository path does not actually exist in the repository as long as starting part of the path fall in the range of the repository. It is used to map changed repository paths in the local change to checkout destination on server (or build agent) disk after the checkout step has been run.

Returns:
null if specified repository path can not be mapped to a checkout file on disk


Copyright © 2005-2010 PMEase Inc. All Rights Reserved.