I have to use this Ant task, but I would also need to pass in some JVM level arguments to the groovy runtime. I tried doing it the <java>
way:
<groovy src="..." failonerror="true">
<classpath>
...
</classpath>
<arg ... />
<jvmarg value="-Djava.security.egd=file:/dev/../dev/urandom"/>
</groovy>
But this seems to have no effect. The documentation does not mention anything related to this topic either.
Looks like the <groovy>
task runs in the same JVM as Ant, so one should either fork it (as comments suggested on the OP), or one can set the desired JVM args to Ant's JVM itself.
Once I added the respective Java options to the command line of Ant, it worked!