Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable building a project in Eclipse?

Tags:

Is there some way to keep a project open in eclipse without building it?

I have a few projects in eclipse that don't build because of errors. I just want to use them as reference while I edit and build my main project, however I can't run my main because eclipse complains about all the errors from the other projects (my project does not depend on them)

like image 392
Jared Avatar asked Nov 13 '10 17:11

Jared


People also ask

How do I stop Eclipse from building workspace?

In these situations, autobuild can be turned off through Window > Preferences > General > Workspace > Build automatically. Even for smaller workspaces, turning off autobuilding may be a useful feature.

Can we hide project in Eclipse?

You may want to Hide all those closed projects from your workspace in Project Explorer tab. Simply follow following steps and do this is few seconds! Step 1: Click on right corner of Project Explorer tab and open context menu. Select Filters option from menu.

How do I completely delete a project in Eclipse?

To delete a project in Eclipse all you have to do is to right click the mouse on the project to be deleted in the Package Explorer view and select Delete from the pop-up menu.


2 Answers

Uncheck 'Build automatically' in the projects menu.

You could also filter the displayed errors/warnings for selected working-sets.

BTW: If your 'main' project is compiled (check bin or classes folder) you should be able to run it, regardless of other projects problems.

like image 43
stacker Avatar answered Sep 21 '22 15:09

stacker


It's possible to disable building all project automatically, but this is often overkill.

Rather than disable all projects from building automatically, you can right click the problem project in the explorer and select the properties of the project. Then select the builders option, and deselect all the builders. This disables building of that particular project.

In order to clear all the build problems that were previously logged by auto-building, you can got to "problems" or "Markers" tab, and select all and delete the items listed there, they will be recreated (except for your disabled project on the next rebuild)

like image 128
Tom Avatar answered Sep 23 '22 15:09

Tom