hudson.plugins.cppunit
Class CppUnitTransformerImpl

java.lang.Object
  extended by hudson.plugins.cppunit.CppUnitTransformerImpl
All Implemented Interfaces:
CppUnitTransformer, java.io.Serializable

public class CppUnitTransformerImpl
extends java.lang.Object
implements CppUnitTransformer, java.io.Serializable

Class responsible for transforming a CppUnit file to a JUnit file and then run them all through the JUnit result archiver.

Author:
Gregory Boissinot
See Also:
Serialized Form

Field Summary
static java.lang.String CPPUNIT_TO_JUNIT_XSL
           
 
Constructor Summary
CppUnitTransformerImpl()
           
CppUnitTransformerImpl(hudson.FilePath customStylesheet)
           
 
Method Summary
 void transform(java.lang.String cppunitFileName, java.io.InputStream cppunitFileStream, java.io.File junitOutputPath)
          Transform the cppunit file into several a junit files in the output path
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CPPUNIT_TO_JUNIT_XSL

public static final java.lang.String CPPUNIT_TO_JUNIT_XSL
See Also:
Constant Field Values
Constructor Detail

CppUnitTransformerImpl

public CppUnitTransformerImpl()

CppUnitTransformerImpl

public CppUnitTransformerImpl(hudson.FilePath customStylesheet)
Method Detail

transform

public void transform(java.lang.String cppunitFileName,
                      java.io.InputStream cppunitFileStream,
                      java.io.File junitOutputPath)
               throws java.io.IOException,
                      javax.xml.transform.TransformerException,
                      org.xml.sax.SAXException,
                      javax.xml.parsers.ParserConfigurationException,
                      java.lang.InterruptedException,
                      java.io.IOException
Transform the cppunit file into several a junit files in the output path

Specified by:
transform in interface CppUnitTransformer
Parameters:
cppunitFileStream - the cppunit file stream to transform
junitOutputPath - the output path to put all junit files
Throws:
java.io.IOException - thrown if there was any problem with the transform.
javax.xml.transform.TransformerException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
java.lang.InterruptedException


Copyright © 2009. All Rights Reserved.