How to pass JVM args to the Groovy Ant task?
<p>I have to use <a href="http://docs.groovy-lang.org/latest/html/documentation/#_the_groovy_ant_task" rel="nofollow">this</a> Ant task, but I would also need to pass in some JVM level arguments to the groovy runtime. I tried doing it the <code>&lt;java&gt;</code> way:</p>

<pre><code>&lt;groovy src="..." failonerror="true"&gt;
    &lt;classpath&gt;
        ...
    &lt;/classpath&gt;
    &lt;arg ... /&gt;
    &lt;jvmarg value="-Djava.security.egd=file:/dev/../dev/urandom"/&gt;
&lt;/groovy&gt;
</code></pre>

<p>But this seems to have no effect. The documentation does not mention anything related to this topic either.</p>