omni.ja and optimizejars.py . . .

Discuss building things with or for the Mozilla Platform.
Post Reply
AlbertG
Posts: 57
Joined: April 12th, 2006, 2:44 pm

omni.ja and optimizejars.py . . .

Post by AlbertG »

Had the crazy idea to go in and dig about inside omni.ja; and found this old page dealing with the topic: https://www.raymond.cc/blog/edit-files- ... -password/

There, he provided a download link to a 2010 release of the file, originally found here: https://hg.mozilla.org/mozilla-central/ ... izejars.py

I subsequently found and grabbed the source for this newer one, instead: https://hg.mozilla.org/mozilla-central/ ... izejars.py

With the saved file, I attempted to run:

Code: Select all

python optimizejars.py --deoptimize ./ ./ ./  /tmp/omni.ja
...and got:
Usage: --optimize|--deoptimize optimizejars.py JAR_LOG_DIR IN_JAR_DIR OUT_JAR_DIR
Nothing happened to the archive.

Is there a later release of the tool, or is there any way to get this copy of "optimizejars" to work with the current omni files?

FF ESR 68.10

Thanks :)
morat
Posts: 6403
Joined: February 3rd, 2009, 6:29 pm

Re: omni.ja and optimizejars.py . . .

Post by morat »

The newer optimizejars.py file is the same optimizejars.py file I'm using in Windows 7 32-bit command prompt.

I'm using the portable build so the omni.ja path is (1) and (2).

1. C:\FirefoxPortable\App\Firefox\omni.ja
2. C:\FirefoxPortable\App\Firefox\browser\omni.ja

Code: Select all

md "C:\Firefox omni 78.0.2 portable"
optimizejars.py --deoptimize "C:\Firefox omni 78.0.2 portable" "C:\FirefoxPortable\App\Firefox\browser" "C:\Firefox omni 78.0.2 portable"
optimizejars.py --deoptimize "C:\Firefox omni 78.0.2 portable" "C:\FirefoxPortable\App\Firefox"         "C:\Firefox omni 78.0.2 portable"
FF ESR 68
http://searchfox.org/mozilla-esr68/source
http://searchfox.org/mozilla-esr68/sour ... ersion.txt

FF RELEASE
http://searchfox.org/mozilla-release/source
http://searchfox.org/mozilla-release/so ... ersion.txt
AlbertG
Posts: 57
Joined: April 12th, 2006, 2:44 pm

Re: omni.ja and optimizejars.py . . .

Post by AlbertG »

Thanks again, morat, for the links and the help.

Looks like it's just a commandline syntax issue on this end ;)

Have a great week!
Post Reply