Skip to content

Commit

Permalink
Only clean default project when building workspace if it exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
ethan-vanderheijden authored and fbricon committed May 9, 2024
1 parent 7160575 commit 185a7cd
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public BuildWorkspaceStatus buildWorkspace(boolean forceReBuild, IProgressMonito
if (monitor.isCanceled()) {
return BuildWorkspaceStatus.CANCELLED;
}
if (ProjectUtils.getAllProjects(false).length == 0) {
if (ProjectsManager.getDefaultProject().exists()) {
ProjectsManager.cleanupResources(ProjectsManager.getDefaultProject());
}
if (forceReBuild) {
Expand Down Expand Up @@ -166,8 +166,9 @@ protected IBuildConfiguration[] getBuildConfigurationsToBuild(Collection<IProjec
* <code>false</code> if not, or if this couldn't be determined
*/
protected boolean hasBuilder(IProject project) {
if (!project.isAccessible())
if (!project.isAccessible()) {
return false;
}
try {
ICommand[] commands = project.getDescription().getBuildSpec();
if (commands.length > 0) {
Expand Down

0 comments on commit 185a7cd

Please sign in to comment.