Class ProtoSourceResolver
java.lang.Object
io.github.ascopes.protobufmavenplugin.sources.ProtoSourceResolver
Component that can index and resolve proto files in a file tree.
In addition, it can discover proto files within archives. These results will be
extracted to a location within the Maven build directory to enable protoc
and other
plugins to be able to view them without needing access to the Java NIO file system APIs.
- Author:
- Ashley Scopes
-
Constructor Summary
ConstructorDescriptionProtoSourceResolver
(ConcurrentExecutor concurrentExecutor, ProtoArchiveExtractor protoArchiveExtractor) -
Method Summary
Modifier and TypeMethodDescriptioncreateProtoFileListing
(Path rootPath, ProtoFileFilter filter) createProtoFileListings
(Collection<Path> rootPaths, ProtoFileFilter filter)
-
Constructor Details
-
ProtoSourceResolver
@Inject public ProtoSourceResolver(ConcurrentExecutor concurrentExecutor, ProtoArchiveExtractor protoArchiveExtractor)
-
-
Method Details
-
createProtoFileListing
public Optional<ProtoFileListing> createProtoFileListing(Path rootPath, ProtoFileFilter filter) throws IOException - Throws:
IOException
-
createProtoFileListings
public Collection<ProtoFileListing> createProtoFileListings(Collection<Path> rootPaths, ProtoFileFilter filter)
-