How to ignore the top-level source folder in Eclipse?

In my Eclipse project, I have two source folders: src / app and src / test , each of which compiles to its own output folder, classes / app and classes / test, respectively.

Unfortunately, since they have the same parent directory, src , this parent directory also appears in the package explorer hierarchy in Eclipse. This is not a big deal, but it is redundant and annoying. See illustration

enter image description here

Any idea how I can remove src from the view, but save its two corresponding subdirectories as source folders? I tried to do this in Customize build path , but could not find a way.

thanks

+4
source share
2 answers

You can’t come up with your own plugin.

The closest thing you might need is to click the withe arrow next to the two yellow ones here

And go to the filters and finally check the "non-java elements", but I suspect that the ant file will also be hidden.

Hello

0
source

Use the view menu in the package explorer view, select "Filters", check "Elements without Java". This will hide other non-Java projects in the same workspace, so use them with caution.

0
source

Source: https://habr.com/ru/post/1447345/


All Articles