| |
|
| java.lang.Object net.sourceforge.cruisecontrol.LogFile
LOG_COMPRESSED_SUFFIX | final public static String LOG_COMPRESSED_SUFFIX(Code) | | |
LogFile | public LogFile(File logDir, String logName)(Code) | | Creates a new instance of LogFile
Parameters: logDir - directory with the XML log file Parameters: logName - name of the XML log file |
LogFile | public LogFile(File xmlFile)(Code) | | Creates a new instance of LogFile
Parameters: xmlFile - the XML log file |
getBuildInfo | public BuildInfo getBuildInfo() throws ParseException(Code) | | Gets the build information for this log file like the label and build
date.
the log file's build information |
getFile | public File getFile()(Code) | | Gets the file object.
the log file |
getLatestLogFile | public static LogFile getLatestLogFile(File logDir)(Code) | | Gets the latest log file in a given directory. Since all of our logs contain a date/time string, this method
is actually getting the log file that comes last alphabetically.
The latest log file or null if there are no logfiles in the given directory. |
getLatestSuccessfulLogFile | public static LogFile getLatestSuccessfulLogFile(File logDir)(Code) | | Gets the latest successful log file in a given directory.
Since all of our logs contain a date/time string, this method
is actually getting the log file that comes last alphabetically.
The latest log file or null if there are nosuccessful log files in the given directory |
getLogDirectory | public File getLogDirectory()(Code) | | Gets the log file's directory.
the parent directory of the log file |
getName | public String getName()(Code) | | Gets the log's name.
This is the file name without a file extension like .xml or
.xml.gz . Use getFile().getName() to get the
file name with extension.
the name of the log |
isCompressed | public boolean isCompressed()(Code) | | Whether the log file is compressed or not.
true if the file is compressed |
|
|
|