GetDependencies
  • 1 Minute to read
  • Dark
    Light
  • PDF

GetDependencies

  • Dark
    Light
  • PDF

Article summary

Returns a list of project dependencies

KeyValue(s)Description
method"GetDependencies"Returns a list of project dependencies
project"Project name"
mode0
changedtrue/falseOptional.  Default =false
If true only returns dependencies which have changed since the project was last built.
delim"|"
user"admin"

Project dependencies are files and packages that have been used in the building of the project.   So if ProjectB injects a package built from ProjectA (ProjectA.zip), ProjectA.zip will be listed as a dependency for project B.

Note: GetDependencies can be run from Admin | Runner

Dependencies can be deleted using DeleteDependencies.  This should be done before a consumer project's data is re-injected.

When a consumer project is opened, if any of the dependencies for the project are out of date, a notification will be displayed:

Once the dialog has been dismissed, a notification icon will be displayed in the project explorer:

Sample Method

{
  "method": "GetDependencies",
  "project": "CONSUMER_Test1",
  "mode": 0, 
  "changed": false,
  "delim": "|",  
}

Output:

{
  "list": [
    {
      "method": "InjectPackage",
      "filename": "Z:/SharedData/scripts/packages/BASE_test1.zip",
      "fileExists": true,
      "ultimate": "",
      "matches": true
    },
    {
      "method": "InjectPackage",
      "filename": "Z:/SharedData/scripts/packages/BikeData.zip",
      "fileExists": true,
      "ultimate": "",
      "matches": true
    }
  ],
  "flat": [
    "||Z:/SharedData/scripts/packages/BASE_test1.zip|False",
    "||Z:/SharedData/scripts/packages/BikeData.zip|False"
  ],
  "executed": true,
  "errors": [],
  "millis": 2,
  "projectEpoch": 638663174584690098,
  "method": "GetDependencies",
  "exmillis": 8
}


Error Return:

project not found (1000) 'CONSUMER_Test2'


{
  "list": [],
  "flat": [],
  "executed": true,
  "errors": [
    "project not found (1000) 'CONSUMER_Test2'"
  ],
  "millis": 1,
  "projectEpoch": 0,
  "method": "GetDependencies",
  "exmillis": 10
}



Was this article helpful?

What's Next