ProtocBridge

nscn.polaris2.protoc.bridge.ProtocBridge
object ProtocBridge

Entry point: turns a list of Targets into a single protoc invocation.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def execute[ExitCode](protoc: ProtocRunner[ExitCode], targets: Seq[Target], params: Seq[String], classLoader: Artifact => ClassLoader): ExitCode

Runs protoc once for the given targets.

Runs protoc once for the given targets.

Value parameters

classLoader

supplies an isolated ClassLoader for each SandboxedJvmGenerator's artifact

params

further protoc arguments, typically -I paths and the .proto files

protoc

how to launch protoc

targets

generators to invoke and where their output goes

Attributes

def execute[ExitCode](protoc: ProtocRunner[ExitCode], targets: Seq[Target], params: Seq[String]): ExitCode

As execute, but rejects sandboxed generators instead of resolving them.

As execute, but rejects sandboxed generators instead of resolving them.

Attributes

def runWithGenerators[ExitCode](protoc: ProtocRunner[ExitCode], namedGenerators: Seq[(String, ProtocCodeGenerator)], params: Seq[String]): ExitCode