readPackageRecipe

Reads a package recipe from a file.

The file format (JSON/SDLang) will be determined from the file extension.

  1. PackageRecipe readPackageRecipe(string filename, string parent_name = null)
    readPackageRecipe
    (
    string filename
    ,
    string parent_name = null
    )
  2. PackageRecipe readPackageRecipe(NativePath filename, string parent_name = null)

Parameters

filename
Type: string

NativePath of the package recipe file

parent_name
Type: string

Optional name of the parent package (if this is a sub package)

Return Value

Returns the package recipe contents

Throws

Throws an exception if an I/O or syntax error occurs

Meta