infer icon indicating copy to clipboard operation
infer copied to clipboard

Run Infer on standalone Jar/War files.

Open martinschaef opened this issue 2 years ago • 3 comments

I want to run Infer in bulk on a few Jar files. Is there a way to run infer capture without the --sourcepath option and just tell it to ingest all the class files it sees in the --generated-classes?

martinschaef avatar Mar 14 '22 18:03 martinschaef

This isn't currently possible. There is a --dependencies flag that was used for this, but the last time I tried this it failed so probably has bit-rotted.

ngorogiannis avatar Mar 17 '22 16:03 ngorogiannis

Thx. Do you know what the --sourcepath is used for? Would it be possible to just touch the filenames that it needs, or do I actually have to run it through a decompiler?

martinschaef avatar Mar 17 '22 16:03 martinschaef

touch might just work. I believe (look at jMain:capture_libs) this is what --dependencies used to do on the fly.

ngorogiannis avatar Mar 17 '22 18:03 ngorogiannis

Run Infer on standalone Jar/War or classes files path, we also need it .

SolomonSun2010 avatar May 23 '23 06:05 SolomonSun2010