use of org.xwiki.xar.XarEntry in project xwiki-platform by xwiki.
the class HTTPPerformanceTest method readXarContents.
protected static List<DocumentReference> readXarContents(String fileName, String patternFilter) throws Exception {
Collection<XarEntry> entries = XarPackage.getEntries(new File(fileName));
List<DocumentReference> result = new ArrayList<DocumentReference>(entries.size());
WikiReference wikiReference = new WikiReference("xwiki");
for (XarEntry entry : entries) {
result.add(new DocumentReference(entry, wikiReference));
}
return result;
}
Aggregations