Helix Core Server settings on the user’s machine
To determine which server and depot are accessed and how files are mapped, the standard classes in the API observe the Helix Core Server settings on the user’s machine. Assuming the workstation is configured correctly, your application does not need to provide logic that specifies server, port, workspace, or user.
To override the user’s settings, your application can call
Set
methods.
Settings take precedence as follows, highest to lowest:
- Values set within a Helix Core Server application
- Values in configuration files (
P4CONFIG
) - Values set as environment variables at the operating system prompt
- Variables residing in the registry (set using the
p4 set
orp4 set -s
commands on Windows client machines) - Default values defined by Helix Core Server or gathered from the system