Refreshing Eclipse Project

eclipse

#1

I have a bespoke codegen task that will generate files under src/generated/java.

My developers invoke this custom task from the “Gradle Tasks” pane in Eclipse. After this has finished executing Eclipse does not discover the new files until the user selects the project and uses the File > Refresh option.

Is there a mechanism I can use to inform eclipse to refresh particular parts of the file tree after a gradle task has been executed?