RFR: 8173970: jar tool should have a way to extract to a directory

Lance Andersen lance.andersen at oracle.com
Thu Mar 11 15:25:57 UTC 2021



On Mar 11, 2021, at 9:29 AM, Alan Bateman <alan.bateman at oracle.com<mailto:alan.bateman at oracle.com>> wrote:



On 04/03/2021 12:01, Lance Andersen wrote:
Hi Jaikiran

From https://docs.oracle.com/en/java/javase/15/docs/specs/man/jar.html

The jar man page includes the following :
 The syntax for the jar command resembles the syntax for the tar command.

Because of the above, I feel that we should support:

———
-C
—dir
—directory
————

The addition of ‘-dir’ adds support for an option used by some of the other java command line tools.

Is --directory needed with this proposal?

I agree with the suggest to create the directory so that it's consistent with other tools.

The only reason I included it is for completeness with tar which the jar options were originally derived from.

Could go either way though

Best
Lance

-Alan.

[cid:E1C4E2F0-ECD0-4C9D-ADB4-B16CA7BCB7FC at home]



Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering
1 Network Drive
Burlington, MA 01803
Lance.Andersen at oracle.com<mailto:Lance.Andersen at oracle.com>





More information about the core-libs-dev mailing list