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

291 views Asked by At

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?

2

There are 2 answers

1
OndroMih On BEST ANSWER

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

0
Laird Nelson On

I see from the source code that the format of this file is a regular java.util.Properties file. There must be some other bug going on.