Class SanctionedExecutableTransformer
java.lang.Object
io.github.ascopes.protobufmavenplugin.fs.AbstractTemporaryLocationProvider
io.github.ascopes.protobufmavenplugin.protoc.targets.SanctionedExecutableTransformer
@Description("Moves executable targets to a user-specified location for corporate environments")
@Named
public final class SanctionedExecutableTransformer
extends AbstractTemporaryLocationProvider
Transformer of
ProtocInvocation
requests that moves executables to a
sanctioned user-requested location.
The use case for this is for users working in overly restrictive corporate environments with various company-mandated facilities that prevent execution of binaries and scripts from outside very specific locations.
If no sanctioned location has been specified, then nothing is changed.
In the event a sanctioned location is specified, then any targets will be rebuilt with a new executable location, and any respective files will be copied across to that location.
- Since:
- 3.9.0
- Author:
- Ashley Scopes
-
Constructor Summary
ConstructorsConstructorDescriptionSanctionedExecutableTransformer
(org.apache.maven.project.MavenProject mavenProject, org.apache.maven.plugin.MojoExecution mojoExecution) -
Method Summary
Methods inherited from class io.github.ascopes.protobufmavenplugin.fs.AbstractTemporaryLocationProvider
resolveAndCreateDirectory
-
Constructor Details
-
SanctionedExecutableTransformer
@Inject public SanctionedExecutableTransformer(org.apache.maven.project.MavenProject mavenProject, org.apache.maven.plugin.MojoExecution mojoExecution)
-
-
Method Details
-
transform
- Throws:
IOException
-