The Source for Java Technology Collaboration
User: Password:



Start New Message Post a Reply

Subject:  Load system properties from file upon startup
Date:  2007-01-13 00:39:53
From:  ujay68


No need for an entirely new syntax. But I would appreciate a standard jvm command-line option to pass a property file and have the jvm load that property file upon startup to initialize system properties:

java -Pmysettings.properties ...

That would simplify all those Tomcat-like startup shell scripts with endless JAVA_OPTS="$JAVA_OPTS -Dfoo=bar" ...

Jay

 Feed java.net RSS Feeds