-
Sub-task
-
Resolution: Delivered
-
P3
-
24
The `jar` tool's extract operation has been enhanced to allow the `--dir` or the `-C` options to be used to specify the directory where the archive will be extracted.
*Example Usages:*
`jar -xf foo.jar -C /tmp/bar/`
or
`jar --extract --file foo.jar --dir /tmp/bar/`
Either of these commands will extract the `foo.jar` to the `/tmp/bar` directory.
For more details, see the [jar command](https://docs-uat.us.oracle.com/en/java/javase/24/docs/specs/man/jar.html) man page.
*Example Usages:*
`jar -xf foo.jar -C /tmp/bar/`
or
`jar --extract --file foo.jar --dir /tmp/bar/`
Either of these commands will extract the `foo.jar` to the `/tmp/bar` directory.
For more details, see the [jar command](https://docs-uat.us.oracle.com/en/java/javase/24/docs/specs/man/jar.html) man page.