GenerateIndexFile

public final class GenerateIndexFile extends GenerationTask

The task to generate the index.js for generated Protobuf types.

The index file is used by the Spine Web to register known types and their parsers.

The index file provides:

  • The map of known types.
  • The map of parsers for known types.

Constructors

Link copied to clipboard
public void GenerateIndexFile(Directory generatedRoot)

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.