PackageManager.loadSCMPackage

For a given SCM repository, returns the corresponding package.

An SCM repository is provided as its remote URL, the repository is cloned and in the dependency speicfied commit is checked out.

If the target directory already exists, just returns the package without cloning.

  1. Package loadSCMPackage(string name, Dependency dependency)
  2. Package loadSCMPackage(string name, Repository repo)
    class PackageManager
    loadSCMPackage

Parameters

name string

Package name

Return Value

Type: Package

The package loaded from the given SCM repository or null if the package couldn't be loaded.

Meta