/** * Iterates through all of the entries in the JAR and determines which of them will * be included in the S-RAMP archive. Returns the collection of artifacts that should be * included. */ private DiscoveredArtifacts discoverArtifacts() { DiscoveredArtifacts artifacts = new DiscoveredArtifacts(); Collection<File> files = FileUtils.listFiles(jarWorkDir, null, true); for (File file : files) { CandidateArtifact candidate = new CandidateArtifact(file, jarWorkDir); if (this.artifactFilter.accepts(candidate)) { artifacts.add(file); } } return artifacts; }