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 {