The documentation on this URL(https://docs.adobe.com/docs/en/aem/6-1/deploy/configuring/configure-runmodes.html) says the below:
There are several methods for specifying which run mode to use; the order of resolution is:
- sling.properties file
- -r option
- system properties (-D)
- Filename detection
Where as this article(https://helpx.adobe.com/experience-manager/kb/RunModeSetUp.html) says as below. Both from the official adobe site. Which is correct?
Behavior when run modes are specified more than one way
The run mode specified in the naming of the jar file takes precedence. If run modes are not specified in the naming of the jar file, the values in the sling.properties file are used. If run modes are not specified in either the naming of the jar file or the sling.properties file, the system property (or JVM argument) is used.