Search code examples
payara-micro

What is the format of the file serving as the operand to the --systemProperties command line argument?


When running Payara Micro, you can use the --systemProperties command line argument to specify a file containing system properties to set. What is the format of this file?

As an example (using Payara Micro 172), if I create a file called system.properties and use it via:

java -jar myPayaraJar.jar ... --systemProperties system.properties

...and it looks like this:

payaramicro.disablePhoneHome=true

...then I do not see that phoning home has been disabled. By contrast, if I specify --disablephonehome as the command line option, I do see that Payara has disabled this feature.

Is there a different format for this properties file that I should be using instead?


Solution

  • The format of the file is usual Java properties file.

    However, there seems to be a bug in Payara Micro. I see you've already raised a bug in github which is the best you could do: https://github.com/payara/Payara/issues/1953