767778798081828384
public static String getXsltCoverageDir() throws XSLTCoverageException { String coverageFile = System.getProperty(SYS_PROP_XSLT_COVERAGE_DIR); if (coverageFile != null) { return coverageFile; } else { throw new XSLTCoverageException("System property [" + SYS_PROP_XSLT_COVERAGE_DIR + "] not set"); } }
110111112113114115116117118
} } } catch (IOException e) { throw new XSLTCoverageException("Error loading coverage index", e); } } }
150151152153154155156157
index.loadInto(e.getValue()); } } catch (IOException e) { throw new XSLTCoverageException(e.getMessage(), e); } }
176177178179180181182183184
for (String key : keys) { File indexFile = getIndexFile(destDir, key); if (indexFile.exists() && !indexFile.delete()) { throw new XSLTCoverageException("Couldn't delete index file: " + indexFile); } } }
190191192193194195196197
{ return new CoverageIndex(getIndexFile(CoverageIOUtil.getDestDir(), key)); } catch (FileNotFoundException e) { throw new XSLTCoverageException(e.getMessage(), e); } }
130131132133134135136137
{ CoverageIOUtil.write(resultaat, new FileOutputStream(CoverageIOUtil.getDestDir() + File.separator + getCoverageXstreamFileName())); } catch (Exception e) { throw new XSLTCoverageException("Could not dump the coverage file!", e); } }
171172173174175176177178
} catch (Exception e) { // no file found.... // System.out.println(e.getMessage()); throw new XSLTCoverageException(XSLTCoverageException.NO_COVERAGE_FILE, "Coverage file not found!", e); } }
206207208209210211212213214215216217218219220
coverageMap.putAll(newMap); } } else { throw new XSLTCoverageException(XSLTCoverageException.NO_COVERAGE_FILE, "Could not find a coverage file!"); } } catch (Exception e) { // no file found.... throw new XSLTCoverageException("Could not find (a)(ny) coverage file(s)!", e); } } }
47484950515253545556
if (!xslt.isDirectory() && file.contains(".xsl")) { try { instrument(CoverageIOUtil.toString(new FileInputStream(xslt)), xslt); } catch (IOException e) { throw new XSLTCoverageException( "Error while intrumenting XSLTs!", e); } } }
100101102103104105106107108
skipComment = false; } rowCount++; } } catch (Exception e) { throw new XSLTCoverageException( "Error while intrumenting an XSLT!", e); } }