Class ProtocTestCompileJavaNanoMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.xolstice.maven.plugin.protobuf.AbstractProtocMojo
-
- org.xolstice.maven.plugin.protobuf.AbstractProtocTestCompileMojo
-
- org.xolstice.maven.plugin.protobuf.ProtocTestCompileJavaNanoMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="test-compile-javanano", defaultPhase=GENERATE_TEST_SOURCES, requiresDependencyResolution=TEST, threadSafe=true) @Deprecated public final class ProtocTestCompileJavaNanoMojo extends AbstractProtocTestCompileMojo
Deprecated.JavaNano has been deprecated in favour of Java Lite. Please see Protocol Buffers documentation for details.This mojo executes theprotoc
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 theproto_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.- Since:
- 0.4.3
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
javaNanoOptions
Deprecated.Additional comma-separated options to be passed to the JavaNano generator.private java.io.File
outputDirectory
Deprecated.This is the directory into which the.java
test sources will be created.-
Fields inherited from class org.xolstice.maven.plugin.protobuf.AbstractProtocTestCompileMojo
descriptorSetClassifier
-
Fields inherited from class org.xolstice.maven.plugin.protobuf.AbstractProtocMojo
attachDescriptorSet, attachProtoSources, buildContext, descriptorSetFileName, includeDependenciesInDescriptorSet, includeSourceInfoInDescriptorSet, project, projectHelper, session, toolchainManager, useArgumentFile, writeDescriptorSet
-
-
Constructor Summary
Constructors Constructor Description ProtocTestCompileJavaNanoMojo()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
addProtocBuilderParameters(Protoc.Builder protocBuilder)
Deprecated.Adds mojo-specific parameters to the protoc builder.protected java.io.File
getOutputDirectory()
Deprecated.Returns the output directory for generated sources.-
Methods inherited from class org.xolstice.maven.plugin.protobuf.AbstractProtocTestCompileMojo
doAttachGeneratedFiles, doAttachProtoSources, getDependencyArtifacts, getDescriptorSetOutputDirectory, getProtoSourceRoot
-
Methods inherited from class org.xolstice.maven.plugin.protobuf.AbstractProtocMojo
checkFilesUpToDate, checkParameters, createDependencyArtifact, createDependencyArtifact, createProtocPlugins, detectJavaHome, doAttachFiles, execute, findGeneratedFilesInDirectory, findProtoFilesInDirectories, findProtoFilesInDirectory, getDependencyArtifactFiles, getExcludes, getIncludes, hasDelta, lastModified, makeProtoPathFromJars, resolveBinaryArtifact, skipMojo, toHexString, truncatePath
-
-
-
-
Field Detail
-
outputDirectory
@Parameter(required=true, property="javananoTestOutputDirectory", defaultValue="${project.build.directory}/generated-test-sources/protobuf/javanano") private java.io.File outputDirectory
Deprecated.This is the directory into which the.java
test sources will be created.
-
javaNanoOptions
@Parameter(required=false, property="javaNanoOptions") private java.lang.String javaNanoOptions
Deprecated.Additional comma-separated options to be passed to the JavaNano generator. Cannot contain colon (:) symbols.
-
-
Method Detail
-
addProtocBuilderParameters
protected void addProtocBuilderParameters(Protoc.Builder protocBuilder)
Deprecated.Description copied from class:AbstractProtocMojo
Adds mojo-specific parameters to the protoc builder.- Overrides:
addProtocBuilderParameters
in classAbstractProtocMojo
- Parameters:
protocBuilder
- the builder to be modified.
-
getOutputDirectory
protected java.io.File getOutputDirectory()
Deprecated.Description copied from class:AbstractProtocMojo
Returns the output directory for generated sources. Depends on build phase so must be defined in concrete implementation.- Specified by:
getOutputDirectory
in classAbstractProtocMojo
- Returns:
- output directory for generated sources.
-
-