Package b4j.report
Class TextFileReleaseProvider
java.lang.Object
b4j.report.DefaultReleaseProvider
b4j.report.AbstractFileReleaseProvider
b4j.report.TextFileReleaseProvider
- All Implemented Interfaces:
ReleaseProvider
,IConfigurable
public class TextFileReleaseProvider extends AbstractFileReleaseProvider
Loads release information from a text file.
The text file contains one release information per line.
A line consists of the timestamp YYYY-MM-DD HH:MM followed by the release name.
Lines starting with a hash (#) will be ignored.
- Author:
- Ralph Schuster
-
Constructor Summary
Constructors Constructor Description TextFileReleaseProvider()
Default constructor. -
Method Summary
Modifier and Type Method Description protected void
loadReleases(java.io.File file)
Loads the text file.Methods inherited from class b4j.report.DefaultReleaseProvider
addRelease, getReleases, releaseExists, removeRelease
-
Constructor Details
-
TextFileReleaseProvider
public TextFileReleaseProvider()Default constructor.
-
-
Method Details
-
loadReleases
protected void loadReleases(java.io.File file) throws org.apache.commons.configuration.ConfigurationExceptionLoads the text file. The text file contains one release information per line. A line consists of the timestamp YYYY-MM-DD HH:MM followed by the release name. Lines starting with a hash (#) will be ignored.- Specified by:
loadReleases
in classAbstractFileReleaseProvider
- Parameters:
file
- - file to load releases from- Throws:
org.apache.commons.configuration.ConfigurationException
- - if an error occurs
-