elvis
elvis

Reputation: 1158

How to search for a word inside all the Java classes from target in Intellij generated after mvn build?

I'm learning Java with Maven projects using Intellij, and when I run mvn clean install, it creates the target directory and inside target, there is WEB-INF...

I want to ask you how can I search for a word inside all the classes from target directory, inside all the WEB-INF.

To search for a word in Intellij inside src\main\java I'm using CTRL + SHIFT +F, but this command doesn't work to search inside target\WEB-INF...

I have a lot of classes generated from mvn build, and these classes aren't int the src\main\java and I want to ask you how to search inside them?

Thank you!

Upvotes: 0

Views: 160

Answers (2)

Sambit
Sambit

Reputation: 8001

In intellij Idea, press SHIFT key twice and enter the keyword to search.

In case of Eclipse, click on Search menu then search and select scope as Workspace, find below the image.

enter image description here

Upvotes: 2

Luna
Luna

Reputation: 305

Remember that a development enviroment are just folders.

If you are using linux you can use:

grep -R "content_to_search" /path/to/directory

A quick search on windows should find you the answer.

Upvotes: 1

Related Questions