Intended usage of `java --dry-run`?

Andrew Guibert aguibert at us.ibm.com
Tue Apr 11 16:13:53 UTC 2017


> From: Alan Bateman <Alan.Bateman at oracle.com>
> To: Andrew Guibert/Rochester/IBM at IBMUS, jigsaw-dev <jigsaw-
> dev at openjdk.java.net>
> Date: 04/11/2017 10:00 AM
> Subject: Re: Intended usage of `java --dry-run`?
>
> On 11/04/2017 15:36, Andrew Guibert wrote:
>
> > :
> >
> > Based on these three use cases, either I'm using --dry-run incorrectly
> > (which isn't obvious if I am) or --dry-run is simply a placebo option.
My
> > main point of confusion comes from (what I believe to be) correct usage
of
> > --dry-run printing out usage info.
> I assume the reason that your examples print the usage message is
> because you haven't specified the main class (or `-jar` or `-m`).
>
> If you try an example such as `java --dry-run  -p <dir> -m <module>` it
> will load the main class from the initial module and exit at that point
> without invoking the main method.

Thanks for clarifying Alan.  I misunderstood the use case of --dry-run to
be
that it did not require any main class, but instead the point is to *load*
but not *execute* the main class.  Perhaps this would be worth clarifying
in
the option description?

- Andy


More information about the jigsaw-dev mailing list