What is the order of resolution of run modes?
What will be the order of resolution of aem(6.0) run mode if it is mentioned in all 4 ways
1.jar file name
2.sling.properties file
3.using -r on command prompt
4.using -Dsling.run.modes
The order conflicts in these two sites
https://helpx.adobe.com/experience-manager/kb/RunModeSetUp.html
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.
Starting CQ with a specific run mode
If you have defined configurations for multiple run modes then you need to define which is to be used upon startup. There are several methods for specifying which run mode to use; the order of resolution is: