final class Protoc extends Object
protoc compiler.
The actual executable is invoked using the plexus Commandline.| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
Protoc.Builder
This class builds
Protoc instances. |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
buildProtocCommand()
Creates the command line arguments.
|
int |
execute(Log log)
Invokes the
protoc compiler using the configuration specified at construction. |
String |
getError() |
String |
getOutput() |
void |
logExecutionParameters(Log log)
Logs execution parameters on debug level to the specified logger.
|
public int execute(Log log) throws CommandLineException, InterruptedException
protoc compiler using the configuration specified at construction.log - logger instance.protoc.CommandLineException - if command line environment cannot be set up.InterruptedException - if the execution was interrupted by the user.public List<String> buildProtocCommand()
This method has been made visible for testing only.
public void logExecutionParameters(Log log)
log - a logger.public String getOutput()
public String getError()
Copyright © 2016–2018 Maven Protocol Buffers Plugin Authors. All rights reserved.