| |
|
| java.lang.Object net.sourceforge.cruisecontrol.sourcecontrols.BuildStatus
BuildStatus | public class BuildStatus implements SourceControl(Code) | | This class allows for starting builds based on the results of another
build. It does this by examining the build's log files. Only
successful builds count as modifications.
author: Garrick Olson |
Method Summary | |
public List | getModifications(Date lastBuild, Date unused) The modifications reported by this method will be the list of new
log files created as the result of successful builds (the log files
will include the build label). | public Map | getProperties() This method is used to make certain attributes of the most
recent modification available to Ant tasks. | public void | setLogDir(String logDir) Indicate where the build to be monitored places its output (log files). | public void | setProperty(String propertyName) | public void | validate() Make sure any attributes provided by the user are correctly specified. |
MOST_RECENT_LOGDIR_KEY | final public static String MOST_RECENT_LOGDIR_KEY(Code) | | The location being checked for new log files.
|
MOST_RECENT_LOGFILE_KEY | final public static String MOST_RECENT_LOGFILE_KEY(Code) | | The name of the newest logfile included in the modification set
(e.g. "log20040120120000L0.1.xml").
|
MOST_RECENT_LOGLABEL_KEY | final public static String MOST_RECENT_LOGLABEL_KEY(Code) | | The label of the newest build included in the modification set
(e.g. "0.1").
|
MOST_RECENT_LOGTIME_KEY | final public static String MOST_RECENT_LOGTIME_KEY(Code) | | The timestamp of the newest build included in the modification set
(e.g. "20040120120000").
|
getModifications | public List getModifications(Date lastBuild, Date unused)(Code) | | The modifications reported by this method will be the list of new
log files created as the result of successful builds (the log files
will include the build label).
Parameters: lastBuild - Look for successful builds newer than this date(may not be null). Parameters: unused - The timestamp of the current build is passed here(as per SourceControl interface) but we don't use it. |
getProperties | public Map getProperties()(Code) | | This method is used to make certain attributes of the most
recent modification available to Ant tasks.
A Hashtable object containing no properties if therewere no modifications, four properties if there were oneor more modifications (keys are provided as constants on thisclass), or five is the property attribute was set.Never returns null. |
setLogDir | public void setLogDir(String logDir)(Code) | | Indicate where the build to be monitored places its output (log files).
Parameters: logDir - Absolute path to the log directory. |
setProperty | public void setProperty(String propertyName)(Code) | | |
|
|
|