- public static Collection<File> getFilesFromClasspath(
- List<File> jarsOnClasspath, List<String> classPathFilter)
- throws ZipException, IOException {
- List<File> yangs = Lists.newArrayList();
-
- for (File file : jarsOnClasspath) {
- ZipFile zip = new ZipFile(file);
- Enumeration<? extends ZipEntry> entries = zip.entries();
- while (entries.hasMoreElements()) {
- ZipEntry entry = entries.nextElement();
- if (entry.getName().endsWith(YANG_SUFFIX)) {
- InputStream stream = zip.getInputStream(entry);
- }
- }
- }
-
- return yangs;
- }
-