C# 클래스 CcNet.Labeller.SvnRevisionLabeller

상속: ILabeller
파일 보기 프로젝트 열기: neutmute/SvnRevisionLabeller

Private Properties

프로퍼티 타입 설명
CalculateElapsedDays int
CalculateMsRevision int
ParseAssemblyInfoVersion void

공개 메소드들

메소드 설명
Generate ( IIntegrationResult resultFromLastBuild ) : string

Returns the label to use for the current build.

Run ( IIntegrationResult result ) : void

Runs the task, given the specified IIntegrationResult, in the specified IProject.

SvnRevisionLabeller ( ) : System

Initializes a new instance of the SvnRevisionLabeller class.

SvnRevisionLabeller ( ISystemClock systemClock ) : System

Initializes a new instance of the SvnRevisionLabeller class.

보호된 메소드들

메소드 설명
AppendCommonSwitches ( ThoughtWorks.CruiseControl.Core.Util.ProcessArgumentBuilder buffer ) : void

Appends the arguments required to authenticate against Subversion.

GetRevision ( ) : int

Gets the latest Subversion revision by checking the last log entry.

If an error occurs while parsing the Subversion log, the revision number will be returned as a 0.

ParseVersion ( int revision, IIntegrationResult resultFromLastBuild ) : System.Version

Parses a version string.

Quote ( string urlToBeQuoted ) : string

Ensures that the SVN URL is surrounded with quotation marks, so that paths with spaces in them do not cause an exception.

RunSvnProcess ( ThoughtWorks.CruiseControl.Core.Util.ProcessArgumentBuilder arguments ) : ProcessResult

Runs the Subversion process.

비공개 메소드들

메소드 설명
CalculateElapsedDays ( string startDate, System.DateTime currentDate ) : int

Calculates the number of elapsed days.

CalculateMsRevision ( System.DateTime startDate, System.DateTime currentDate ) : int

Calculates the revision using the standard Microsoft format, being the number of seconds since midnight divided by 2.

ParseAssemblyInfoVersion ( ) : void

Instead of taking the major/minor from hard coded cc.net config, parse for it in the source code which is easily settable

메소드 상세

AppendCommonSwitches() 보호된 메소드

Appends the arguments required to authenticate against Subversion.
protected AppendCommonSwitches ( ThoughtWorks.CruiseControl.Core.Util.ProcessArgumentBuilder buffer ) : void
buffer ThoughtWorks.CruiseControl.Core.Util.ProcessArgumentBuilder The argument builder.
리턴 void

Generate() 공개 메소드

Returns the label to use for the current build.
Thrown when an error occurs while formatting the version number using the various formatting tokens. Thrown when an error occurs while formatting the version number and an argument has not been specified.
public Generate ( IIntegrationResult resultFromLastBuild ) : string
resultFromLastBuild IIntegrationResult IntegrationResult from last build used to determine the next label.
리턴 string

GetRevision() 보호된 메소드

Gets the latest Subversion revision by checking the last log entry.
If an error occurs while parsing the Subversion log, the revision number will be returned as a 0.
protected GetRevision ( ) : int
리턴 int

ParseVersion() 보호된 메소드

Parses a version string.
protected ParseVersion ( int revision, IIntegrationResult resultFromLastBuild ) : System.Version
revision int The current revision.
resultFromLastBuild IIntegrationResult The result from last build.
리턴 System.Version

Quote() 보호된 메소드

Ensures that the SVN URL is surrounded with quotation marks, so that paths with spaces in them do not cause an exception.
protected Quote ( string urlToBeQuoted ) : string
urlToBeQuoted string The URL to be quoted.
리턴 string

Run() 공개 메소드

Runs the task, given the specified IIntegrationResult, in the specified IProject.
public Run ( IIntegrationResult result ) : void
result IIntegrationResult The label for the current build.
리턴 void

RunSvnProcess() 보호된 메소드

Runs the Subversion process.
protected RunSvnProcess ( ThoughtWorks.CruiseControl.Core.Util.ProcessArgumentBuilder arguments ) : ProcessResult
arguments ThoughtWorks.CruiseControl.Core.Util.ProcessArgumentBuilder The command-line arguments.
리턴 ProcessResult

SvnRevisionLabeller() 공개 메소드

Initializes a new instance of the SvnRevisionLabeller class.
public SvnRevisionLabeller ( ) : System
리턴 System

SvnRevisionLabeller() 공개 메소드

Initializes a new instance of the SvnRevisionLabeller class.
public SvnRevisionLabeller ( ISystemClock systemClock ) : System
systemClock ISystemClock The system clock implementation that will be used when calculating date-based /// revision numbers.
리턴 System