Class AbstractProtocTestCompileMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.xolstice.maven.plugin.protobuf.AbstractProtocMojo
org.xolstice.maven.plugin.protobuf.AbstractProtocTestCompileMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
ProtocTestCompileCppMojo
,ProtocTestCompileCsharpMojo
,ProtocTestCompileCustomMojo
,ProtocTestCompileJavaNanoMojo
,ProtocTestCompileJavaScriptMojo
,ProtocTestCompileMojo
,ProtocTestCompilePythonMojo
An abstract base mojo configuration for using
protoc
compiler with the test sources.- Since:
- 0.3.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
If generated descriptor set is to be attached to the build, specifies an optional classifier.private File
This is the directory into which the (optional) descriptor set file will be created.private File
The source directories containing the test.proto
definitions to be compiled.Fields inherited from class org.xolstice.maven.plugin.protobuf.AbstractProtocMojo
attachDescriptorSet, attachProtoSources, buildContext, descriptorSetFileName, includeDependenciesInDescriptorSet, includeSourceInfoInDescriptorSet, project, projectHelper, session, toolchainManager, useArgumentFile, writeDescriptorSet
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.xolstice.maven.plugin.protobuf.AbstractProtocMojo
addProtocBuilderParameters, checkFilesUpToDate, checkParameters, createDependencyArtifact, createDependencyArtifact, createProtocPlugins, detectJavaHome, doAttachFiles, execute, findGeneratedFilesInDirectory, findProtoFilesInDirectories, findProtoFilesInDirectory, getDependencyArtifactFiles, getExcludes, getIncludes, getOutputDirectory, hasDelta, lastModified, makeProtoPathFromJars, resolveBinaryArtifact, skipMojo, toHexString, truncatePath
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
protoTestSourceRoot
@Parameter(required=true, defaultValue="${basedir}/src/test/proto") private File protoTestSourceRootThe source directories containing the test.proto
definitions to be compiled. -
descriptorSetOutputDirectory
@Parameter(required=true, defaultValue="${project.build.directory}/generated-test-resources/protobuf/descriptor-sets") private File descriptorSetOutputDirectoryThis is the directory into which the (optional) descriptor set file will be created.- Since:
- 0.3.0
-
descriptorSetClassifier
If generated descriptor set is to be attached to the build, specifies an optional classifier.- Since:
- 0.4.1
-
-
Constructor Details
-
AbstractProtocTestCompileMojo
public AbstractProtocTestCompileMojo()
-
-
Method Details
-
doAttachProtoSources
protected void doAttachProtoSources()- Specified by:
doAttachProtoSources
in classAbstractProtocMojo
-
doAttachGeneratedFiles
protected void doAttachGeneratedFiles()- Specified by:
doAttachGeneratedFiles
in classAbstractProtocMojo
-
getDependencyArtifacts
- Specified by:
getDependencyArtifacts
in classAbstractProtocMojo
-
getDescriptorSetOutputDirectory
Description copied from class:AbstractProtocMojo
Returns output directory for descriptor set file. Depends on build phase so must be defined in concrete implementation.- Specified by:
getDescriptorSetOutputDirectory
in classAbstractProtocMojo
- Returns:
- output directory for generated descriptor set.
-
getProtoSourceRoot
- Specified by:
getProtoSourceRoot
in classAbstractProtocMojo
-