Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix version number in XML and HTML outputs #131

Merged
merged 2 commits into from
Nov 12, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/com/cflint/XMLOutput.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class XMLOutput {

public void output(final BugList bugList, final Writer writer) throws IOException {
// final StringBuilder sb = new StringBuilder();
writer.append("<issues>").append(System.getProperty("line.separator"));
writer.append("<issues version=\"" + Version.getVersion() + "\">").append(System.getProperty("line.separator"));
for (final Entry<String, List<BugInfo>> bugEntry : bugList.getBugList().entrySet()) {
final Iterator<BugInfo> iterator = bugEntry.getValue().iterator();
BugInfo bugInfo = iterator.hasNext() ? iterator.next() : null;
Expand Down
6 changes: 5 additions & 1 deletion src/main/resources/findbugs/cflint-to-findbugs.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ xmlns:sets="http://exslt.org/sets">

<!-- timestamp="1385123483628" analysisTimestamp="1385123483675" -->
<xsl:template match="/">
<BugCollection version="0.1.6" sequence="0" release="">
<xsl:variable name="version" select="/issues/@version"/>
<BugCollection sequence="0" release="">
<xsl:attribute name="version">
<xsl:value-of select="$version"/>
</xsl:attribute>
<Project projectName="">
</Project>
<xsl:apply-templates select="/issues/issue" />
Expand Down