title: Read system properties from file specified as java executable argument
body: <p>By launching java with the -D option you can set System.properties.</p>
  
  <p>Is there a way to specify a properties file as an option for java, which in turn read them as <code>System.properties</code>?</p>
  
  <p>E.g.</p>
  
  <pre><code>java -Dfile ./alotof.properties
  </code></pre>
  
  <p>I'm building a webapp deployed in JBoss. The jboss xml configuration files accepts system properties as inline config <code>{my.property}</code>, which reads from the command line argument but this gets unruly as the number of properties grow.</p>