Find in Files for modular jdk

已回答

How do we use find in files for the new modular jdk? I remember getting this work at some point but can't figure it out.

0

Use Search Everywhere or Navigate | Class.

0

I was looking more into searching inside the files, sorry I know in the example it looks like I'm searching for a class. Thanks for the help.

0

jmod is not a directory, you can't search for files inside it.

0

It's also not a jar file and so the exclamation mark doesn't work. But anyways I was curious because this was a feature I often utilized to search inside the jdk. From the looks of it seems this won't be supported in the future.

0

Comment from the developers regarding JMOD support from one of the internal tickets that may help you understand why we don't support it:

"adding the support is technically complicated, because Java neither provide an API that allows opening a JMOD file and reading its contents, nor publish the format for someone else to write a reader. I'm aware of jmod tool, but one cannot use it for indexing JMODs (except spawning the tool to unpack a file and then indexing an exploded directory, which would be slow and error-prone). Finally, they cannot be used at runtime."

1

Thanks for the detailed response! This explains.

0

请先登录再写评论。