Random Stuff About Stuff

Eclipse Resource folders showing as packages

August 19, 2015

So I use Eclipse for my java development. I recently added a new resource folder for testing and for some reason it has decided to treat the folder in the directory as packages, but because they don’t contain source files they seem to be odd and white as well. The normal resource folder seems to be fine.

Wrong looking folder Wrong resources

The correct looking folder Correct resources

Comparing the setup of both in the project build path I noticed the normal resource folder had an entry in excluded, so I added the same entry for /src/test/resources

The current setup had none in the exluded list Build path

To fix the problem I add an exclusion of ’**’ Which will now look like this New Build Path


Written by David Kerwick who lives and works Dublin as a Java Technical Lead.