Package com.cakupan.xslt.instrument

Examples of com.cakupan.xslt.instrument.InstrumentXSLT


  private File destDir;
  private List<FileSet> fileSets = new LinkedList<FileSet>();

  @Override
  public void execute() throws BuildException {
    InstrumentXSLT instrumentXslt = new InstrumentXSLT();
    System.out.println("Start instrumenting XSLTs.");
    CoverageIOUtil.setDestDir(destDir);
    if (fileset != null) {
      for (FileSet fileset : fileSets) {
        String[] files = fileset.getDirectoryScanner(getProject()).getIncludedFiles();
        if (files != null && files.length >0){
          for (int i = 0; i < files.length; i++) {
            try {
              instrumentXslt.initCoverageMap(fileset.getDir(getProject()).getPath()+File.separator+files[i]);
            } catch (XSLTCoverageException e) {
              getProject().log("Instrumenting file ["+files[i]+"] failed!", Project.MSG_WARN);
            }
          }
          try {
View Full Code Here

TOP

Related Classes of com.cakupan.xslt.instrument.InstrumentXSLT

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.