ozibuild
    Preparing search index...

    Class SourceDirContext

    Represents the context of a directory within source tree, which consists of:

    • Reference to the source directory, its parent and the source root.
    • Access to configuration(s).
    • Resolved output directory configured for the source directory.

    Most tools use the SourceDirContext for locating inputs in source tree and derive the path of target outputs.

    It is expected to be initiated only in the scripts for the source directory, see sourceDirContext for examples.

    Index

    Accessors

    • get isRoot(): boolean

      Indicates whether this is the root of the source tree.

      Returns boolean

    Constructors

    Methods

    • Ensures the given direct sub-directory of this source path is initialized.

      Parameters

      • dir: string

      Returns any

    • Computes the full part of a filename relative to the output path.

      Parameters

      • filename: string

      Returns string

    • Parameters

      • mkdirs: boolean

      Returns string

    • Resolves a path relative to this source directory to an absolute path. If the given path is already absolute, no changes are made.

      Parameters

      • relativePath: string

        path to resolve, relative to this directory or absolute.

      Returns string

      resolved absolute path.

    Properties

    absolutePath: string
    config: OzibuildConfig
    sourcePath: string