Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Fedorenko2010-12-23 13:34:45 -0500
committerIgor Fedorenko2010-12-23 13:34:57 -0500
commit1298722765397083784ef374c1cf333fd6d22c7a (patch)
treede2afb3fa5dd3c02882a1de47812f3f682fb9bff
parent8214d2532869ab675cfc6e9d935821e56fff727c (diff)
downloadm2e-core-1298722765397083784ef374c1cf333fd6d22c7a.tar.gz
m2e-core-1298722765397083784ef374c1cf333fd6d22c7a.tar.xz
m2e-core-1298722765397083784ef374c1cf333fd6d22c7a.zip
removed stale/unused code
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/core/IMavenConstants.java8
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/MavenProjectManager.java18
-rw-r--r--org.eclipse.m2e.jdt/plugin.xml7
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JDTCompilationParticipant.java68
4 files changed, 0 insertions, 101 deletions
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/core/IMavenConstants.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/core/IMavenConstants.java
index fb9562d1..90bd405d 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/core/IMavenConstants.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/core/IMavenConstants.java
@@ -11,7 +11,6 @@
package org.eclipse.m2e.core.core;
-import org.eclipse.core.runtime.QualifiedName;
/**
* Maven Constants
@@ -58,13 +57,6 @@ public interface IMavenConstants {
public static final String SOURCES_CLASSIFIER = "sources"; //$NON-NLS-1$
-
- /**
- * Session property key used to indicate that full maven build was requested for a project.
- * It is not intended to be used by clients directly.
- */
- public static final QualifiedName FULL_MAVEN_BUILD = new QualifiedName(PLUGIN_ID, "fullBuild"); //$NON-NLS-1$
-
/**
* The name of the folder containing metadata information for the workspace.
*/
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/MavenProjectManager.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/MavenProjectManager.java
index 303d30a7..1c122150 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/MavenProjectManager.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/MavenProjectManager.java
@@ -22,7 +22,6 @@ import org.eclipse.core.runtime.NullProgressMonitor;
import org.apache.maven.artifact.repository.MavenArtifactRepository;
import org.apache.maven.execution.MavenExecutionRequest;
-import org.eclipse.m2e.core.core.IMavenConstants;
import org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager;
import org.eclipse.m2e.core.internal.project.registry.ProjectRegistryRefreshJob;
@@ -125,23 +124,6 @@ public class MavenProjectManager {
}
/**
- * Request full maven build for a project.
- *
- * This call only has effect for projects that have maven nature and
- * Maven builder configured.
- *
- * This call does not trigger the build. Instead next time Maven builder
- * processes the project it will use goals to execute during clean
- * build regardless of the build type requested.
- *
- * The main purpose of this call is to allow coordination between multiple
- * builders configured for the same project.
- */
- public void requestFullMavenBuild(IProject project) throws CoreException {
- project.setSessionProperty(IMavenConstants.FULL_MAVEN_BUILD, Boolean.TRUE);
- }
-
- /**
* PROVISIONAL
*/
public MavenExecutionRequest createExecutionRequest(IFile pom, ResolverConfiguration resolverConfiguration, IProgressMonitor monitor) throws CoreException {
diff --git a/org.eclipse.m2e.jdt/plugin.xml b/org.eclipse.m2e.jdt/plugin.xml
index 2056b3ae..a4ef7849 100644
--- a/org.eclipse.m2e.jdt/plugin.xml
+++ b/org.eclipse.m2e.jdt/plugin.xml
@@ -96,13 +96,6 @@
</factory>
</extension>
- <extension point="org.eclipse.jdt.core.compilationParticipant">
- <compilationParticipant
- id="org.eclipse.m2e.compilationParticipant"
- class="org.eclipse.m2e.jdt.internal.JDTCompilationParticipant"
- createsProblems="false"
- modifiesEnvironment="false"/>
- </extension>
<extension point="org.eclipse.ui.popupMenus">
<objectContribution id="org.eclipse.m2e.classpathMenu"
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JDTCompilationParticipant.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JDTCompilationParticipant.java
deleted file mode 100644
index f3114012..00000000
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/JDTCompilationParticipant.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008-2010 Sonatype, Inc.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Sonatype, Inc. - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.m2e.jdt.internal;
-
-import java.util.Date;
-
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.jdt.core.IJavaProject;
-import org.eclipse.jdt.core.compiler.BuildContext;
-import org.eclipse.jdt.core.compiler.CompilationParticipant;
-
-import org.eclipse.m2e.core.MavenPlugin;
-import org.eclipse.m2e.core.core.MavenConsole;
-import org.eclipse.m2e.core.core.MavenLogger;
-import org.eclipse.m2e.core.embedder.IMavenConfiguration;
-import org.eclipse.m2e.jdt.MavenJdtPlugin;
-
-
-public class JDTCompilationParticipant extends CompilationParticipant {
-
- public static boolean DEBUG = MavenPlugin.getDefault().isDebugging()
- & Boolean.parseBoolean(Platform.getDebugOption(MavenJdtPlugin.PLUGIN_ID + "/debug/compilationParticipant")); //$NON-NLS-1$
-
- @Override
- public synchronized void cleanStarting(IJavaProject project) {
- if(DEBUG) {
- System.out.println("\nRequested clean for " + project.getProject() //$NON-NLS-1$
- + " @ " + new Date(System.currentTimeMillis())); //$NON-NLS-1$
- }
-
- MavenPlugin plugin = MavenPlugin.getDefault();
- IMavenConfiguration configuration = MavenPlugin.getDefault().getMavenConfiguration();
- if (configuration.isDebugOutput()) {
- MavenConsole console = plugin.getConsole();
- console.logMessage("Maven compilation participant: clean starting");
- }
-
- super.cleanStarting(project);
-
- try {
- plugin.getMavenProjectManager().requestFullMavenBuild(project.getProject());
- } catch(CoreException ex) {
- MavenLogger.log("Exception requesting full Maven build", ex);
- }
- }
-
- public void buildStarting(BuildContext[] files, boolean isBatch) {
- }
-
- // 3.4
- public void buildFinished(IJavaProject project) {
- }
-
- public boolean isActive(IJavaProject project) {
- return true;
- }
-
-}

Back to the top