I am trying to set a custom property in my System variables from my terminal( command prompt) in Mac OS
ex :: java -Dlog.logdir="logs"
not sure why it is not setting that in the system properties when trying to retrieve it from the class
ex :: String prop = System.getProperty("log.logdir");
Please let me know what i am missing while setting the property from Terminal (command prompt).
Thanks in Advance!