use of org.apache.maven.scm.command.changelog.ChangeLogSet in project maven-plugins by apache.
the class FileActivityReport method doGenerateReport.
/**
* {@inheritDoc}
*/
protected void doGenerateReport(List<ChangeLogSet> changeLogSets, ResourceBundle bundle, Sink sink) {
sink.head();
sink.title();
sink.text(bundle.getString("report.file-activity.header"));
sink.title_();
sink.head_();
sink.body();
sink.section1();
sink.sectionTitle1();
sink.text(bundle.getString("report.file-activity.mainTitle"));
sink.sectionTitle1_();
for (ChangeLogSet set : changeLogSets) {
doChangedSets(set, bundle, sink);
}
sink.section1_();
sink.body_();
sink.flush();
sink.close();
}
use of org.apache.maven.scm.command.changelog.ChangeLogSet in project maven-plugins by apache.
the class DeveloperActivityReport method doGenerateReport.
/**
* {@inheritDoc}
*/
protected void doGenerateReport(List<ChangeLogSet> changeLogSets, ResourceBundle bundle, Sink sink) {
sink.head();
sink.title();
sink.text(bundle.getString("report.dev-activity.header"));
sink.title_();
sink.head_();
sink.body();
sink.section1();
sink.sectionTitle1();
sink.text(bundle.getString("report.dev-activity.mainTitle"));
sink.sectionTitle1_();
if (developers.isEmpty()) {
sink.paragraph();
sink.text(bundle.getString("report.dev-activity.noDevelopers"));
sink.paragraph_();
} else {
for (ChangeLogSet set : changeLogSets) {
doChangedSets(set, bundle, sink);
}
}
sink.section1_();
sink.body_();
sink.flush();
sink.close();
}
use of org.apache.maven.scm.command.changelog.ChangeLogSet in project maven-plugins by apache.
the class ChangeLog method loadChangedSets.
public static List<ChangeLogSet> loadChangedSets(Reader reader) throws ParserConfigurationException, SAXException, IOException {
SAXParser parser = SAXParserFactory.newInstance().newSAXParser();
List<ChangeLogSet> changeLogSets = new ArrayList<ChangeLogSet>();
// CHECKSTYLE_OFF: MagicNumber
BufferedReader br = new BufferedReader(reader, 8192);
// CHECKSTYLE_ON: MagicNumber
parser.parse(new InputSource(br), new ChangeLogHandler(changeLogSets));
return changeLogSets;
}
use of org.apache.maven.scm.command.changelog.ChangeLogSet in project maven-plugins by apache.
the class ChangeLog method loadChangedSets.
/**
* parses a previously generated changelog xml document and return its changed sets
*
* @param stream the changelog xml document
* @return changelog sets parsed from the xml document
* @throws ParserConfigurationException when instantiation of the SAX parser failed
* @throws SAXException when an error occurred while parsing the xml document
* @throws IOException when an error occurred while accessing the xml document
*/
public static List<ChangeLogSet> loadChangedSets(InputStream stream) throws ParserConfigurationException, SAXException, IOException {
SAXParser parser = SAXParserFactory.newInstance().newSAXParser();
List<ChangeLogSet> changeLogSets = new ArrayList<ChangeLogSet>();
parser.parse(stream, new ChangeLogHandler(changeLogSets));
return changeLogSets;
}
use of org.apache.maven.scm.command.changelog.ChangeLogSet in project maven-plugins by apache.
the class ChangeLogReport method filter.
/**
* filters out unwanted files from the changesets
*/
private void filter(List<ChangeLogSet> changeSets) {
List<Pattern> include = compilePatterns(includes);
List<Pattern> exclude = compilePatterns(excludes);
if (includes == null && excludes == null) {
return;
}
for (ChangeLogSet changeLogSet : changeSets) {
List<ChangeSet> set = changeLogSet.getChangeSets();
filter(set, include, exclude);
}
}
Aggregations