ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Jar task: --module-version and --main-class options
Date Tue, 02 Oct 2018 05:20:41 GMT
On 2018-10-01, Bruce Alspaugh wrote:

> Java 9 and later add several new options to the jar tool:


> I would like to use the --module-version and --main-class options with
> Ant's Jar task, but I could not find them in the manual:


> I can accomplish this using exec, but it would be simpler if I could
> use those options with the jar task. Can those two options be added?

I think there already is a Bugzilla enhancement request for --main-class
but none for --module-version. Can you either please update the existing
ticket[1] or add a new one for the second part?

As for "can it be done?": of course, but it may be a bit more difficult
than you think. Ant does not use the JDK's jar tool at all but rather
builds the jar by itself (that's just a ZIP with some extra contents,
after all). So we'll need to figure out from the docs what those
switches actually do and mimic the outcome.



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

View raw message