You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jordan Piscitelli edited this page Sep 5, 2018
·
4 revisions
Using an existing Detect Jar with the Bash or Powershell script.
By default the detect scripts download a detect jar from Artifactory. If instead you have already downloaded the detect jar but still want to use the shells script set the 'DETECT_JAR_PATH' environment variable to the path of the jar.
powershell
$env:DETECT_JAR_PATH = "file-path"
bash
export DETECT_JAR_PATH="file-path"
Prevent the Powershell script from exiting the session after completing.
By default, the powershell script exits with the same exit code as detect. If simply want it to return, set the DETECT_EXIT_CODE_PASSTHRU environment variable to 1.
$env:DETECT_EXIT_CODE_PASSTHRU = 1
Prevent the Powershell script from checking the system for Java.
By default, the powershell script checks the system for Java before running. If you wish to disable this check, set the DETECT_SKIP_JAVA_TEST environment variable to 1.
$env:DETECT_SKIP_JAVA_TEST = 1
Using a specific version of Detect instead of latest release.
set DETECT_LATEST_RELEASE_VERSION = version-desired
Using a snapshot build of Detect instead of release.
By default, the detect scripts pull the newest version of detect available. If you wish to use a snapshot build of detect you must set the following variables.