title: How to set system properties for runMain on command line?
body: <p>How can I set a system property for <code>runMain</code> upon executing it from command line on Windows?</p>
  
  <p>I'd like to be able to run the following command:</p>
  
  <pre><code>sbt -Dconfig.resource=../application.conf "runMain akka.Main com.my.main.Actor"
  </code></pre>
  
  <p>Regardless of whether <code>fork</code> is true, whether I put it in <code>SBT_OPTS</code>, or how I pass it in I cannot accomplish this. I am familiar with both <a href="https://stackoverflow.com/questions/16939554/how-can-i-set-a-setting-using-the-command-line-without-it-having-a-default-value">Setting value of setting on command line when no default value defined in build?</a> and <a href="https://stackoverflow.com/questions/10155870/scala-simple-build-tool-giving-your-program-system-properties-with-sbt-run">Setting system properties with &quot;sbt run&quot;</a> but neither answer my question.</p>
  
  <p>Other questions seem to indicate you can't even easily view the Java invocation arguments easily in SBT. Any help is appreciated.</p>