title: Adding long JVM options to ant launch command
body: <p>Similar to <a href="https://stackoverflow.com/questions/39275646/ant-support-for-java-9-addmods-option">this question</a>, I am looking for a way to supply long options (i.e. <code>--long-option myVal</code>) to the JVM used by ant.  However, my question is different because I want to specify these JVM options to the ant process itself, not some sub-process that ant creates (e.g. <code>&lt;java&gt;</code>).</p>
  
  <p>Specifically, I need to specify <code>--add-modules java.se.ee</code> so that the ant tasks run by my build scripting have access to the JAXB classes.</p>
  
  <p>What I have tried so far:</p>
  
  <pre><code>ant -f build.xml --add-modules java.se.ee
  ant -f build.xml --add-modules=java.se.ee
  ant -f build.xml -Dadd-modules=java.se.ee
  ant -f build.xml -D--add-modules=java.se.ee
  ant -f build.xml -propertyfile java9.properties
  </code></pre>
  
  <p>For the <code>-propertyfile</code> option I have tried having the contents of <code>java9.properties</code> as:</p>
  
  <pre><code>--add-modules java.se.ee
  </code></pre>
  
  <p>and also with the key and value on separate lines:</p>
  
  <pre><code>--add-modules
  java.se.ee
  </code></pre>