Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2012-07-24 10:02:08 +0000
committerEike Stepper2012-07-24 10:02:08 +0000
commitd032cce54b32a7589da8afcdbe7bdf103085f226 (patch)
treef4e65517769f946b2b9db5c883f3875ee13d26a7 /plugins
parentf22139d1f9e2f8bc6b324c02f24300607308d409 (diff)
downloadcdo-d032cce54b32a7589da8afcdbe7bdf103085f226.tar.gz
cdo-d032cce54b32a7589da8afcdbe7bdf103085f226.tar.xz
cdo-d032cce54b32a7589da8afcdbe7bdf103085f226.zip
Properly delete markers on clean/deconfigure
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.emf.cdo.releng.version/src/org/eclipse/emf/cdo/releng/version/VersionBuilder.java16
-rw-r--r--plugins/org.eclipse.emf.cdo.releng.version/src/org/eclipse/emf/cdo/releng/version/VersionNature.java2
2 files changed, 18 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.releng.version/src/org/eclipse/emf/cdo/releng/version/VersionBuilder.java b/plugins/org.eclipse.emf.cdo.releng.version/src/org/eclipse/emf/cdo/releng/version/VersionBuilder.java
index 547fc54732..f75e4a9735 100644
--- a/plugins/org.eclipse.emf.cdo.releng.version/src/org/eclipse/emf/cdo/releng/version/VersionBuilder.java
+++ b/plugins/org.eclipse.emf.cdo.releng.version/src/org/eclipse/emf/cdo/releng/version/VersionBuilder.java
@@ -98,6 +98,22 @@ public class VersionBuilder extends IncrementalProjectBuilder implements Element
}
@Override
+ protected void clean(IProgressMonitor monitor) throws CoreException
+ {
+ monitor.beginTask(null, 1);
+
+ try
+ {
+ IProject project = getProject();
+ Markers.deleteAllMarkers(project);
+ }
+ finally
+ {
+ monitor.done();
+ }
+ }
+
+ @Override
protected final IProject[] build(int kind, @SuppressWarnings("rawtypes") Map args, IProgressMonitor monitor)
throws CoreException
{
diff --git a/plugins/org.eclipse.emf.cdo.releng.version/src/org/eclipse/emf/cdo/releng/version/VersionNature.java b/plugins/org.eclipse.emf.cdo.releng.version/src/org/eclipse/emf/cdo/releng/version/VersionNature.java
index e961aea5a2..70c2ada698 100644
--- a/plugins/org.eclipse.emf.cdo.releng.version/src/org/eclipse/emf/cdo/releng/version/VersionNature.java
+++ b/plugins/org.eclipse.emf.cdo.releng.version/src/org/eclipse/emf/cdo/releng/version/VersionNature.java
@@ -63,6 +63,8 @@ public class VersionNature implements IProjectNature
public void deconfigure() throws CoreException
{
+ Markers.deleteAllMarkers(project);
+
IProjectDescription description = getProject().getDescription();
ICommand[] commands = description.getBuildSpec();
for (int i = 0; i < commands.length; ++i)

Back to the top