Skip to content

Commit

Permalink
Merge pull request #147 from osmarjunior/spotbugs
Browse files Browse the repository at this point in the history
Adding the xml declaration with the effective encoding in outputSpotbugsFile
  • Loading branch information
hazendaz authored Oct 2, 2019
2 parents a9763cc + c91a813 commit 6ccff44
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,9 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait {
outputFile.createNewFile()

def writer = outputFile.newWriter(effectiveEncoding)

writer.write "<?xml version=\"1.0\" encoding=\"" + effectiveEncoding + "\"?>"

writer.write "\n"

writer << xmlBuilder.bind { mkp.yield path }
Expand Down

0 comments on commit 6ccff44

Please sign in to comment.