Making a directory available to Eclipse

I was busy adding logging to a project today and added a logback.xml file to a resource directory under src/main. When running the application the logback.xml file was not being picked up. It turns out the resource directory must be added to the build path. A quick reminder how to do this:

  • Right click on the project
  • Select Build Path | Configure Build Path…
  • Select the Source tab
  • Click Add Folder…
  • Check the check box of the folder to add
  • Click OK
  • Click OK

Everything should be working now.

Leave a comment