title: How to create a custom sbt task that sets java options before running the app
body: <p>I'd like to have a new sbt task <code>runDev</code> that is the equivalent of setting a system property first, then running <code>run</code>:</p>
  
  <pre><code>sbt '; set javaOptions += "-Dlogback.configurationFile=logback-dev.xml" ; run'
  </code></pre>
  
  <p>How can I do this in sbt?</p>