RFR: 8173970: jar tool should have a way to extract to a directory
Jaikiran Pai
jai.forums2013 at gmail.com
Mon Mar 29 10:46:37 UTC 2021
On 28/03/21 9:52 pm, Lance Andersen wrote:
>
>
>> On Mar 28, 2021, at 9:24 AM, Jaikiran Pai <jai.forums2013 at gmail.com
>> <mailto:jai.forums2013 at gmail.com>> wrote:
>>
>>
>> Now when the user explicitly specifies the new -C or --dir option
>> with the -P option for extract, something like:
>>
>> jar -xfP foo.jar -C /tmp/hello/
>
> Given the support of -C/-dir is new and -P is there for backwards
> compatibility then I see the choices are:
>
> * Issue an error when -P and -C/-dir are specified together with -x
> * Silently ignore the -P option
> * Ignore -C/-dir and the behavior is if -xfP was specified.
>
>
> I am leaning towards an error given this is a new feature when -P and
> -C/-dir are specified with -x
That sounds reasonable to me. I'll update the PR accordingly to take
this into account.
-Jaikiran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20210329/5dfc1e5e/attachment.htm>
More information about the compiler-dev
mailing list