com.googlecode.jslint4java.ant
Class JUnitXmlResultFormatter

java.lang.Object
  extended by com.googlecode.jslint4java.ant.JUnitXmlResultFormatter
All Implemented Interfaces:
ResultFormatter

public class JUnitXmlResultFormatter
extends Object
implements ResultFormatter

Output the result of a JSLint run as a JUnit XML file.

See Also:
JUnitXmlFormatter

Constructor Summary
JUnitXmlResultFormatter()
           
 
Method Summary
 void begin()
          Called at the start of JSLintTask execution.
 void end()
          Called at the end of JSLintTask execution.
 void output(JSLintResult result)
          Called for each file that is checked by JSLintTask.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUnitXmlResultFormatter

public JUnitXmlResultFormatter()
Method Detail

begin

public void begin()
Description copied from interface: ResultFormatter
Called at the start of JSLintTask execution.

Specified by:
begin in interface ResultFormatter

end

public void end()
Description copied from interface: ResultFormatter
Called at the end of JSLintTask execution.

Specified by:
end in interface ResultFormatter

output

public void output(JSLintResult result)
Description copied from interface: ResultFormatter
Called for each file that is checked by JSLintTask.

Specified by:
output in interface ResultFormatter
Parameters:
result - The details if this JSLint run.

setFile

public void setFile(File file)
Description copied from interface: ResultFormatter
Called during initialization. The file to where output should be written.

Specified by:
setFile in interface ResultFormatter
Parameters:
file - The file to write to.

setStdout

public void setStdout(OutputStream defaultOutputStream)
Description copied from interface: ResultFormatter
If you want to write to stdout, you can't just use System.out, because we're in the middle of ant task. Ensure that a suitable form is passed down instead.

Specified by:
setStdout in interface ResultFormatter


Copyright © 2007-2012. All Rights Reserved.