ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: How to add the argument --add-modules to javac and java?
Date Fri, 18 Aug 2017 17:53:36 GMT
On 2017-08-14, Erno Scheiber wrote:

> In Java 9 not all packages are included in the graph of the packages.
> Now, this is the case of the package java.corba.
> The argument
>     --add-modules java.corba ...
> must be added to javac, respectivelly java in a terminal.
> How to do that within apache-ant?

For <java> a nested <jvmarg> is the way to go, for <javac> it's the
corresponding <compilerarg>:

<java ...>
  <jvmarg line="--add-modules java.corba"/>

<javac ...>
  <compilerarg line="--add-modules java.corba"/>


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message