use of com.buschmais.jqassistant.core.scanner.api.Scanner in project jqa-java-plugin by buschmais.
the class AbstractJavaPluginIT method scanClassPathResources.
protected void scanClassPathResources(final Scope scope, String artifactId, final String... resources) throws IOException {
final File directory = getClassesDirectory(this.getClass());
execute(artifactId, new ScanClassPathOperation() {
@Override
public List<FileDescriptor> scan(JavaArtifactFileDescriptor artifact, Scanner scanner) {
List<FileDescriptor> result = new ArrayList<>();
for (String resource : resources) {
File file = new File(directory, resource);
FileDescriptor fileDescriptor = scanner.scan(file, resource, scope);
result.add(fileDescriptor);
}
return result;
}
});
}
Aggregations