Свойство | Type | Description | |
---|---|---|---|
CalculateElapsedDays | int | ||
CalculateMsRevision | int | ||
ParseAssemblyInfoVersion | void |
Méthode | Description | |
---|---|---|
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.
|
Méthode | Description | |
---|---|---|
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 |
|
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.
|
Méthode | Description | |
---|---|---|
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
|
protected AppendCommonSwitches ( ThoughtWorks.CruiseControl.Core.Util.ProcessArgumentBuilder buffer ) : void | ||
buffer | ThoughtWorks.CruiseControl.Core.Util.ProcessArgumentBuilder | The argument builder. |
Résultat | void |
public Generate ( IIntegrationResult resultFromLastBuild ) : string | ||
resultFromLastBuild | IIntegrationResult | IntegrationResult from last build used to determine the next label. |
Résultat | string |
protected ParseVersion ( int revision, IIntegrationResult resultFromLastBuild ) : System.Version | ||
revision | int | The current revision. |
resultFromLastBuild | IIntegrationResult | The result from last build. |
Résultat | System.Version |
protected Quote ( string urlToBeQuoted ) : string | ||
urlToBeQuoted | string | The URL to be quoted. |
Résultat | string |
public Run ( IIntegrationResult result ) : void | ||
result | IIntegrationResult | The label for the current build. |
Résultat | void |
protected RunSvnProcess ( ThoughtWorks.CruiseControl.Core.Util.ProcessArgumentBuilder arguments ) : ProcessResult | ||
arguments | ThoughtWorks.CruiseControl.Core.Util.ProcessArgumentBuilder | The command-line arguments. |
Résultat | ProcessResult |
public SvnRevisionLabeller ( ISystemClock systemClock ) : System | ||
systemClock | ISystemClock | The system clock implementation that will be used when calculating date-based /// revision numbers. |
Résultat | System |