ResolveImports

public final class ResolveImports extends GenerationTask

A task to resolve imports in generated files.

Supports only CommonJs imports.

The task should be performed last among generation tasks to ensure that imports won't be modified after execution of this task.

Constructors

Link copied to clipboard
public void ResolveImports(Directory generatedRoot, Collection<ExternalModule> modules)

Functions

Link copied to clipboard
protected void generateFor(FileSet fileSet)
Generates code for the Protobuf files.

Inherited functions

Link copied to clipboard
protected FileSet filter(FileSet fileSet)
Filters out files that should not processed by the task.
Link copied to clipboard
protected Directory generatedRoot()
Obtains the root of the generated Protobuf sources.
Link copied to clipboard
public final void performFor(FileSet fileSet)
Generates code for the specified file set.