Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I configure eclipse to automatically refresh a project as part of it's build?

I have a maven plugin generating some code for eclipse to build, but I have to manually refresh the project before eclipse sees the code.

How can I make eclipse automatically refresh the project as part of the build?

I'm trying to use a custom builder, but it wants to run a command (which I don't need to do).

like image 990
ScArcher2 Avatar asked Oct 15 '10 16:10

ScArcher2


People also ask

How do you refresh a project programmatically in eclipse?

To refresh all projects in a workspace, simply enumerate all projects using ResourcesPlugin. getWorkspace(). getRoot(). getProjects() API and refresh each in turn.

How do you refresh a Java project?

Use : Window->Preferences-> General -> Workspace and check Refresh using native hooks and polling checkbox.


2 Answers

You can make eclipse automatically refresh your whole workspace: Window->Preferences->General->Workspace and check "Refresh automatically"

like image 174
Avall Avatar answered Nov 16 '22 00:11

Avall


you can make it project/build specific for external builders under Project Properties->Build->Refresh Policy. Here is an example for C/C++ builds.

enter code here

like image 42
J-Dizzle Avatar answered Nov 15 '22 23:11

J-Dizzle