Skip to content

Conversation

@waskyo
Copy link
Contributor

@waskyo waskyo commented Sep 16, 2025

This way users don't need to install java to run us. Jar is just a zip file so the change is purely cosmetic:

  • zip by default creates archives so no need for any command line options
  • zip doesn't have an equivalent option to jar -C so instead we tell subprocess
    to run the zip command from the folder we were passing to jar -C.

The ocaml side may be more of a rabbit hole, which then may extend to the other analyzers.

There are still some things using the .jar extension:

That way users don't need to install java to run us. Jar is
just a zip file so the change is purely cosmetic.

The ocaml side may be more of a rabbit hole, which then may
extend to the other analyzers.

There are still some things using the .jar extension:
- `bchsummaries.jar` since that file is a copy of what we have in the ocaml analyzer
repo:
https://github.com/static-analysis-engineering/codehawk/tree/master/CodeHawk/CHB/bchsummaries
https://github.com/static-analysis-engineering/codehawk/blob/master/CodeHawk/CHB/bchsummaries/makejar.sh
- `*functions.jar` in the analysis folder: the ocaml analyzer reads in
  this file and expects that filename:
https://github.com/static-analysis-engineering/codehawk/blob/master/CodeHawk/CHB/bchlib/bCHPreFileIO.ml#L183-L191
Copy link
Contributor

@sipma sipma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! This is a very good thing, to get rid of the java dependency.

@sipma sipma merged commit 6bff37c into static-analysis-engineering:master Sep 16, 2025
1 check passed
@waskyo waskyo deleted the use_zip_instead_of_jar branch September 16, 2025 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants