-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
7070: Allow JMC to open compressed recordings with the extension .lz4 #250
Conversation
👋 Welcome back aptmac! A progress list of the required criteria for merging this PR into |
Many years ago I looked into using multiple file associations for JMC, but it had to work (without conflicts) when using JMC as an Eclipse plug-in as well. I don't think ".lz4" is used in Eclipse + common plug-ins, but it is an aspect to consider. |
I think we should run with it for now. AFAIK no standard plug-in included in the Eclipse IDE distributions will use the lz4 extension. Also, it's becoming less common to run the Eclipse plug-in version of JMC. |
@aptmac This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
Thanks for the heads up. I tried using the JMC run configuration for eclipse and plugins, and it seemed to still work okay. |
/integrate |
This one-worder addresses JMC-7070 [0], in which LZ4 compressed files cannot be opened while having the file extension ".lz4"
JMC-6701 added support for opening jfr files that were compressed using lz4 [0]. The functionality works, however the file association was not updated to include files ending in ".lz4" for flight recording files, so these compressed recordings must still be supplied with the file ending of ".jfr". This isn't ideal, because the default behaviour of
lz4
is to append ".lz4" to the end of the supplied file; in my example I have a file calledlol.jfr
, which when compressed becomeslol.jfr.lz4
and cannot be opened by JMC without manually renaming it.This one-word fix adds the file extension "lz4" to the extension list in
flightrecorder.ui
'splugin.xml
forJfrEditor
, so that supplying a*.lz4
file will result in trying to open a JfrEditor page.[0] https://bugs.openjdk.java.net/browse/JMC-7070
[1] b6e5bde
Before:
After:
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jmc pull/250/head:pull/250
$ git checkout pull/250
Update a local copy of the PR:
$ git checkout pull/250
$ git pull https://git.openjdk.java.net/jmc pull/250/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 250
View PR using the GUI difftool:
$ git pr show -t 250
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jmc/pull/250.diff