@Mojo(name="test-compile-javanano", defaultPhase=GENERATE_TEST_SOURCES, requiresDependencyResolution=TEST, threadSafe=true) @Deprecated public final class ProtocTestCompileJavaNanoMojo extends AbstractProtocTestCompileMojo
protoc
compiler for generating test JavaNano sources
from protocol buffer definitions. It also searches dependency artifacts in the test scope for
.proto
files and includes them in the proto_path
so that they can be
referenced. Finally, it adds the .proto
files to the project as test resources so
that they can be included in the test-jar artifact.descriptorSetClassifier
attachDescriptorSet, attachProtoSources, buildContext, descriptorSetFileName, includeDependenciesInDescriptorSet, includeSourceInfoInDescriptorSet, project, projectHelper, session, toolchainManager, useArgumentFile, writeDescriptorSet
Constructor and Description |
---|
ProtocTestCompileJavaNanoMojo()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addProtocBuilderParameters(Protoc.Builder protocBuilder)
Deprecated.
Adds mojo-specific parameters to the protoc builder.
|
protected File |
getOutputDirectory()
Deprecated.
Returns the output directory for generated sources.
|
doAttachGeneratedFiles, doAttachProtoSources, getDependencyArtifacts, getDescriptorSetOutputDirectory, getProtoSourceRoot
checkFilesUpToDate, checkParameters, createDependencyArtifact, createDependencyArtifact, createProtocPlugins, detectJavaHome, doAttachFiles, execute, findGeneratedFilesInDirectory, findProtoFilesInDirectories, findProtoFilesInDirectory, getDependencyArtifactFiles, getExcludes, getIncludes, hasDelta, lastModified, makeProtoPathFromJars, resolveBinaryArtifact, skipMojo, toHexString, truncatePath
getLog, getPluginContext, setLog, setPluginContext
protected void addProtocBuilderParameters(Protoc.Builder protocBuilder)
AbstractProtocMojo
addProtocBuilderParameters
in class AbstractProtocMojo
protocBuilder
- the builder to be modified.protected File getOutputDirectory()
AbstractProtocMojo
getOutputDirectory
in class AbstractProtocMojo
Copyright © 2016–2018 Maven Protocol Buffers Plugin Authors. All rights reserved.