Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/java/transform/bringInFile"

Index

Functions

Functions

bringInFile

  • bringInFile(url: string, sourceRoot?: string, targetPackage?: string): CodeTransform
  • Add the downloaded content to the given project, putting it in the appropriate package. Assumes the file is self-contained. URL must end with path of the Java file. Does not change the package in the file: refactor in a separate transform if you want to do this.

    Parameters

    • url: string

      url of the content. Must be publicly accessible

    • Default value sourceRoot: string = "src/main/java"

      source root to place the file under

    • Optional targetPackage: string

      (optional) the package under which the file should be brought in

    Returns CodeTransform

Generated using TypeDoc