title: How to pass javaOptions to "play run" through Build.scala
body: <p>I would like to pass a  <code>-Dconfig.file=conf/dev.conf</code> parameter to my application through Build.scala when I use the <code>run</code> command.</p>
  
  <p>I am trying to put something like in this in my <code>Build.scala</code>:</p>
  
  <pre><code>val mySettings = Seq(
    (javaOptions in run) ++= Seq("-Dconfig.file=conf/dev.conf")
  )
  
  val main = play.Project(appName, appVersion, appDependencies).settings(
    mySettings: _*
  )
  </code></pre>
  
  <p>But it doesn't - from what I've gathered this is because SBT doesn't fork a new JVM when I use run. Any workarounds <em>except</em> of setting an environment variable?</p>