Class SourceRootRegistrar
java.lang.Object
io.github.ascopes.protobufmavenplugin.generation.SourceRootRegistrar
Strategy for registration of sources with the Maven project.
This cannot be extended outside the predefined strategies that already exist in this class.
- Author:
- Ashley Scopes
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
static final SourceRootRegistrar
private final String
private final BiConsumer
<org.apache.maven.project.MavenProject, String> static final SourceRootRegistrar
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
SourceRootRegistrar
(String name, BiConsumer<org.apache.maven.project.MavenProject, String> sourceRootRegistrar, Function<org.apache.maven.model.Build, String> classOutputDirectoryGetter) -
Method Summary
Modifier and TypeMethodDescriptionvoid
embedListing
(org.apache.maven.execution.MavenSession session, SourceListing listing) void
registerSourceRoot
(org.apache.maven.execution.MavenSession session, Path path) toString()
-
Field Details
-
MAIN
-
TEST
-
log
private static final org.slf4j.Logger log -
name
-
sourceRootRegistrar
-
classOutputDirectoryGetter
-
-
Constructor Details
-
SourceRootRegistrar
private SourceRootRegistrar(String name, BiConsumer<org.apache.maven.project.MavenProject, String> sourceRootRegistrar, Function<org.apache.maven.model.Build, String> classOutputDirectoryGetter)
-
-
Method Details
-
registerSourceRoot
-
embedListing
public void embedListing(org.apache.maven.execution.MavenSession session, SourceListing listing) throws IOException - Throws:
IOException
-
toString
-