Package com.vladium.emma.report

Examples of com.vladium.emma.report.ReportProcessor


    }
    for (int i = 0; i < coveragefiles.length; i++) {
      datapath.add(coveragefiles[i].toOSString());
      monitor.worked(1);
    }
    ReportProcessor processor = ReportProcessor.create();
    processor.setDataPath((String[]) datapath.toArray(new String[0]));
    processor.setSourcePath((String[]) sourcepath.toArray(new String[0]));
    processor.setReportTypes(new String[] { DEFAULT_EXTENSIONS[format] });
    Properties props = new Properties(options);
    props.setProperty(PROP_OUT_FILE, destination);
    processor.setPropertyOverrides(props);
    processor.run();
    monitor.done();
  }
View Full Code Here


    }
    for (int i = 0; i < coveragefiles.length; i++) {
      datapath.add(coveragefiles[i].toOSString());
      monitor.worked(1);
    }
    ReportProcessor processor = ReportProcessor.create();
    processor.setDataPath((String[]) datapath.toArray(new String[0]));
    processor.setSourcePath((String[]) sourcepath.toArray(new String[0]));
    processor.setReportTypes(new String[] { DEFAULT_EXTENSIONS[format] });
    Properties props = new Properties(options);
    props.setProperty(PROP_OUT_FILE, destination);
    processor.setPropertyOverrides(props);
    processor.run();
    monitor.done();
  }
View Full Code Here

    }
    for (int i = 0; i < coveragefiles.length; i++) {
      datapath.add(coveragefiles[i].toOSString());
      monitor.worked(1);
    }
    ReportProcessor processor = ReportProcessor.create();
    processor.setDataPath((String[]) datapath.toArray(new String[0]));
    processor.setSourcePath((String[]) sourcepath.toArray(new String[0]));
    processor.setReportTypes(new String[] { DEFAULT_EXTENSIONS[format] });
    Properties props = new Properties(options);
    props.setProperty(PROP_OUT_FILE, destination);
    props.setProperty(PROP_OUT_ENCODING, OUTPUT_ENCODING);
    processor.setPropertyOverrides(props);
    processor.run();
    monitor.done();
  }
View Full Code Here

        properties.setProperty( "report.sort", "+name,+block,+method,+class" );
        properties.setProperty( "report.out.encoding", "UTF-8" );
        properties.setProperty( "report.xml.out.encoding", "UTF-8" );
        properties.setProperty( "report.html.out.encoding", "UTF-8" );

        ReportProcessor reporter = ReportProcessor.create();
        reporter.setAppName( IAppConstants.APP_NAME );
        reporter.setDataPath( PathUtil.paths( coverageFile ) );
        reporter.setSourcePath( PathUtil.paths( request.getSourcePaths() ) );
        try
        {
            reporter.setReportTypes( request.getFormats().toArray( new String[0] ) );
        }
        catch ( RuntimeException e )
        {
            throw new CoverageReportException( "Unsupported report format: " + request.getFormats(), e );
        }
        reporter.setPropertyOverrides( properties );

        reporter.run();
    }
View Full Code Here

TOP

Related Classes of com.vladium.emma.report.ReportProcessor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.