public class XmlResultFormatter extends Object implements ResultFormatter
<jslint> <file name="bad.js"> <issue line="0" char="0" reason="Insufficient Llamas" evidence="var sheep;"/> </file> <file name="good.js"/> </jslint>
Constructor and Description |
---|
XmlResultFormatter() |
Modifier and Type | Method and Description |
---|---|
void |
begin()
Called at the start of
JSLintTask execution. |
protected JSLintResultFormatter |
createFormatter()
Create and return the
JSLintResultFormatter used by this ant result formatter. |
void |
end()
Write out the XML file containing the issues for all files.
|
void |
output(JSLintResult result)
Create a "file" element, containing nested "issue" elements.
|
void |
setFile(File file)
Called during initialization.
|
void |
setStdout(OutputStream defaultOutputStream)
If you want to write to stdout, you can't just use System.out, because we're in the middle of
ant task.
|
protected JSLintResultFormatter createFormatter()
JSLintResultFormatter
used by this ant result formatter.public void begin()
ResultFormatter
JSLintTask
execution.begin
in interface ResultFormatter
public void end()
end
in interface ResultFormatter
ResultFormatter.end()
public void output(JSLintResult result)
output
in interface ResultFormatter
result
- The details if this JSLint run.public void setFile(File file)
ResultFormatter
setFile
in interface ResultFormatter
file
- The file to write to.public void setStdout(OutputStream defaultOutputStream)
ResultFormatter
setStdout
in interface ResultFormatter
Copyright © 2007-2013. All Rights Reserved.