java - Is there a way to pass all properties from a property-file as JVM params? -



java - Is there a way to pass all properties from a property-file as JVM params? -

we can pass single property through java cli using -d argument:

java -dkey=value ...

is there way pass properties property file in way?

something like:

java -dprop.file=myproperties.properties ...

you can if add

system.getproperties().load(new fileinputstream(system.getproperty("prop.file")));

java properties

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -