@Test public void testIOExceptionIsHandledWhenRemovingUnreferencedFiles() { Path nonExisting = sourcePath.resolve("non/existing/sub/folder"); sourcesExporter = new SourcesExporter(nonExisting); sourcesExporter.removeUnreferencedFiles(Collections.emptyList()); }
public void removeUnreferencedFiles(Collection<ReleaseWithSources> releases) { RemoveUnreferencedFilesVisitor visitor = new RemoveUnreferencedFilesVisitor(releases); try { Files.walkFileTree(sourcePath, visitor); } catch (IOException e) { LOG.error("Could not traverse sources directory {}", sourcePath, e); } }
SourcesExporter { public void removeUnreferencedFiles(Collection<ReleaseWithSources> releases) { RemoveUnreferencedFilesVisitor visitor = new RemoveUnreferencedFilesVisitor(releases); try { Files.walkFileTree(sourcePath, visitor); } catch (IOException e) { LOG.error("Could not traverse sources directory {}", sourcePath, e); } } }
SourcesExporter { public void removeUnreferencedFiles(Collection<ReleaseWithSources> releases) { RemoveUnreferencedFilesVisitor visitor = new RemoveUnreferencedFilesVisitor(releases); try { Files.walkFileTree(sourcePath, visitor); } catch (IOException e) { LOG.error("Could not traverse sources directory {}", sourcePath, e); } } SourcesExporter(Path sourcePath); }
SourcesExporter { public void removeUnreferencedFiles(Collection<ReleaseWithSources> releases) { RemoveUnreferencedFilesVisitor visitor = new RemoveUnreferencedFilesVisitor(releases); try { Files.walkFileTree(sourcePath, visitor); } catch (IOException e) { LOG.error("Could not traverse sources directory {}", sourcePath, e); } } SourcesExporter(Path sourcePath); Collection<ReleaseWithSources> downloadSources(SW360ReleaseClientAdapterAsync releaseAdapter,
                                                          Collection<SW360Release> releases); void removeUnreferencedFiles(Collection<ReleaseWithSources> releases); }
SourcesExporter { public void removeUnreferencedFiles(Collection<ReleaseWithSources> releases) { RemoveUnreferencedFilesVisitor visitor = new RemoveUnreferencedFilesVisitor(releases); try { Files.walkFileTree(sourcePath, visitor); } catch (IOException e) { LOG.error("Could not traverse sources directory {}", sourcePath, e); } } SourcesExporter(Path sourcePath); Collection<ReleaseWithSources> downloadSources(SW360ReleaseClientAdapterAsync releaseAdapter,
                                                          Collection<SW360Release> releases); void removeUnreferencedFiles(Collection<ReleaseWithSources> releases);  }