Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Bricon2015-07-24 16:42:45 -0400
committerFred Bricon2015-07-26 11:50:04 -0400
commit087dcbb521fb6ee7ce603fd971e532c399a61df6 (patch)
treebbefc21fe8a7b0155c4cf53967dd0b85309061af
parent791675fd8455a825b5b48709f6897ca40ce61bef (diff)
downloadm2e-core-087dcbb521fb6ee7ce603fd971e532c399a61df6.tar.gz
m2e-core-087dcbb521fb6ee7ce603fd971e532c399a61df6.tar.xz
m2e-core-087dcbb521fb6ee7ce603fd971e532c399a61df6.zip
473546 : restore AbstractEclipseBuildContext.getFiles()
Change-Id: I262d5cadaec3559096d82b716b27a154d2051f7e Signed-off-by: Fred Bricon <fbricon@gmail.com>
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/BuildResultCollector.java1
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/IIncrementalBuildFramework.java6
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/plexusbuildapi/AbstractEclipseBuildContext.java9
3 files changed, 16 insertions, 0 deletions
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/BuildResultCollector.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/BuildResultCollector.java
index 754141d5..0cf28593 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/BuildResultCollector.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/BuildResultCollector.java
@@ -62,6 +62,7 @@ class BuildResultCollector implements IIncrementalBuildFramework.BuildResultColl
/** List of files to cleanup messages for by build participant id */
private final Map<String, List<File>> removeMessages = new LinkedHashMap<String, List<File>>();
+ @Override
public Set<File> getFiles() {
return refresh;
}
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/IIncrementalBuildFramework.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/IIncrementalBuildFramework.java
index 124e659a..29b68b66 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/IIncrementalBuildFramework.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/IIncrementalBuildFramework.java
@@ -12,6 +12,7 @@
package org.eclipse.m2e.core.internal.builder;
import java.io.File;
+import java.util.Set;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResourceDelta;
@@ -35,6 +36,11 @@ public interface IIncrementalBuildFramework {
public void addMessage(File file, int line, int column, String message, int severity, Throwable cause);
public void removeMessages(File file);
+
+ /**
+ * @since 1.6.2
+ */
+ public Set<File> getFiles();
}
/**
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/plexusbuildapi/AbstractEclipseBuildContext.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/plexusbuildapi/AbstractEclipseBuildContext.java
index f9dbc802..4e85712d 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/plexusbuildapi/AbstractEclipseBuildContext.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/plexusbuildapi/AbstractEclipseBuildContext.java
@@ -15,6 +15,7 @@ import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Map;
+import java.util.Set;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IResource;
@@ -129,4 +130,12 @@ public abstract class AbstractEclipseBuildContext implements BuildContext, IIncr
public void release() {
ThreadBuildContext.setThreadBuildContext(null);
}
+
+ /**
+ * @deprecated BuildContext consumers should not care which files were modified during a build.
+ */
+ @Deprecated
+ public Set<File> getFiles() {
+ return results.getFiles();
+ }
}

Back to the top