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)
    class PackageManager
    deprecated
    loadSCMPackage
  2. Package loadSCMPackage(string name, Repository repo)

Parameters

name string

Package name

dependency Dependency

Dependency that contains the repository URL and a specific commit

Return Value

Type: Package

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

Meta