title: Override a config.properties in a jar
body: <p>I have executable jar file with its main class being specified in <code>META-INF/MANIFEST.MF</code> and one some of the properties specified in <code>config.properties</code> and <code>folder/config.properties</code>. </p>
  
  <p>So the structure of my jar file is</p>
  
  <pre><code>./my-jar-with-dependencies.jar
  |- com/mypackage/Main.class
  |- META_INF/MANIFEST.MF 
  |- config.properties
  |- folder
  |    |- config.properties
  |     - system.properties
  |- lib
  |
  ..
  </code></pre>
  
  <p>What I want to achieve is execute the jar file as <code>java -jar my-jar-with-dependencies.jar -Dconfig.properties=\path\to\new\config.properties_outside_the_jar</code> and overriding the properties file within the jar.</p>
  
  <p>Is this possible? If so how?</p>
  
  <p>Note: I am not the one in control of how the jar is packaged, so changing the packaging of jar is not really an easy option </p>