|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.cruisecontrol.sourcecontrols.CMSynergy
Checks for modifications made to a Telelogic CM Synergy repository. It does this by examining a provided reference project, getting the tasks from all folders in that project, and checking the completion time of those tasks against the last build.
Field Summary | |
static java.lang.String |
CCM_ATTR_DELIMITER
A delimiter used for data values returned from a CM Synergy query |
static java.lang.String |
CCM_END_OBJECT
A delimiter used to mark the end of a multi-lined result from a query |
static java.lang.String |
CCM_EXE
The default CM Synergy command line client executable |
static java.lang.String |
CCM_SESSION_FILE
The default CM Synergy session map file |
static java.lang.String |
CCM_SESSION_VAR
The environment variable used by CM Synergy to determine which backend ccmSession to use when issuing commands. |
Constructor Summary | |
CMSynergy()
|
Method Summary | |
static ManagedCommandline |
createCcmCommand(java.lang.String ccmExe,
java.lang.String sessionName,
java.io.File sessionFile)
Creates a ManagedCommandline configured to run CM Synergy
commands. |
java.util.List |
getModifications(java.util.Date lastBuild,
java.util.Date now)
Get a List of Modifications detailing all the changes between now and the last build |
java.util.Map |
getProperties()
Any properties that have been set in this sourcecontrol. |
static java.lang.String |
getSessionID(java.lang.String sessionName,
java.io.File sessionFile)
Given a CM Synergy session name, looks up the corresponding session ID. |
void |
setCcmDateFormat(java.lang.String format)
Sets the date format used by your installation of CM Synergy. |
void |
setCcmDb(java.lang.String db)
Sets the remote Synergy database with which to connect. |
void |
setCcmExe(java.lang.String ccmExe)
Sets the name of the CM Synergy executable to use when issuing commands. |
void |
setChangeSynergyURL(java.lang.String url)
Sets the URL for your installation of Change Synergy. |
void |
setCountry(java.lang.String country)
Sets the country used to create the locale for parsing CM Synergy dates. |
void |
setIgnoreWorkarea(boolean ignoreWorkarea)
Sets the value of the ignoreWorkarea attribute. |
void |
setInstance(java.lang.String projectInstance)
Sets the project's instance value. |
void |
setLanguage(java.lang.String language)
Sets the language used to create the locale for parsing CM Synergy dates. |
void |
setProject(java.lang.String projectSpec)
Sets the CM Synergy project spec to be used as a template for calculating changes. |
void |
setProperty(java.lang.String property)
|
void |
setReconfigure(boolean reconfigure)
Sets the value of the reconfigure attribute. |
void |
setRecurse(boolean recurse)
Sets the value of the recurse attribute. |
void |
setSessionFile(java.lang.String sessionFile)
Sets the file which contains the mapping between CM Synergy session names and IDs. |
void |
setSessionName(java.lang.String sessionName)
Sets the name of the CM Synergy session to use with this plugin. |
void |
setUpdateFolders(boolean updateFolders)
Sets the value of the updateFolders attribute. |
void |
validate()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String CCM_ATTR_DELIMITER
public static final java.lang.String CCM_END_OBJECT
public static final java.lang.String CCM_EXE
public static final java.lang.String CCM_SESSION_VAR
public static final java.lang.String CCM_SESSION_FILE
Constructor Detail |
public CMSynergy()
Method Detail |
public void setCcmExe(java.lang.String ccmExe)
ccmExe
- the name of the CM Synergy executablepublic void setProject(java.lang.String projectSpec)
projectSpec
- The project spec (in 2 part name format).public void setInstance(java.lang.String projectInstance)
projectInstance
- The instance number of the project.public void setChangeSynergyURL(java.lang.String url)
url
- The URL of your ChangeSynergy installationpublic void setCcmDb(java.lang.String db)
db
- The remote Synergy database with which to connect (e.g.
/ccmdb/mydb).public void setUpdateFolders(boolean updateFolders)
updateFolders
- public void setSessionFile(java.lang.String sessionFile)
example:
session1=localhost:65024:192.168.1.17
sessionFile
- The session filepublic void setSessionName(java.lang.String sessionName)
sessionName
- The session namesetSessionFile(String)
public void setCcmDateFormat(java.lang.String format)
SimpleDateFormat
.
The default is "EEE MMM dd HH:mm:ss yyyy" The value set here can be
accessed from within the build as the property "cc.ccm.dateformat".
format
- the date formatpublic void setReconfigure(boolean reconfigure)
reconfigure
- public void setRecurse(boolean recurse)
recurse
- public void setIgnoreWorkarea(boolean ignoreWorkarea)
ignoreWorkarea
- public void setLanguage(java.lang.String language)
java.util.Locale
. The default is "en" (English).
language
- The language to use when creating the Locale
public void setCountry(java.lang.String country)
java.util.Locale
. The default is "US" (United States).
country
- The ISO country code to usepublic java.util.Map getProperties()
SourceControl
getProperties
in interface SourceControl
public void setProperty(java.lang.String property)
public void validate() throws CruiseControlException
validate
in interface SourceControl
CruiseControlException
public java.util.List getModifications(java.util.Date lastBuild, java.util.Date now)
SourceControl
getModifications
in interface SourceControl
lastBuild
- now
-
public static java.lang.String getSessionID(java.lang.String sessionName, java.io.File sessionFile) throws CruiseControlException
sessionName
- The CM Synergy session namesessionFile
- The session map file
CruiseControlException
public static ManagedCommandline createCcmCommand(java.lang.String ccmExe, java.lang.String sessionName, java.io.File sessionFile)
ManagedCommandline
configured to run CM Synergy
commands.
ccmExe
- Full path of the CM Synergy command line client (or
null
to use the default).sessionName
- The name of the session as stored in the map file (or
null
to use the default session).sessionFile
- The CM Synergy session map file (or null
to use
the default).
ManagedCommandline
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |