Author: fbricon
Date: 2012-02-23 04:10:48 -0500 (Thu, 23 Feb 2012)
New Revision: 39039
Removed:
trunk/maven/plugins/org.jboss.tools.maven.cdi/src/org/jboss/tools/maven/cdi/Messages.java
trunk/maven/plugins/org.jboss.tools.maven.cdi/src/org/jboss/tools/maven/cdi/messages.properties
Modified:
trunk/maven/plugins/org.jboss.tools.maven.cdi/src/org/jboss/tools/maven/cdi/configurators/CDIProjectConfigurator.java
Log:
JBIDE-11005 : remove confusing logging
Deleted:
trunk/maven/plugins/org.jboss.tools.maven.cdi/src/org/jboss/tools/maven/cdi/Messages.java
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.cdi/src/org/jboss/tools/maven/cdi/Messages.java 2012-02-23
09:10:02 UTC (rev 39038)
+++
trunk/maven/plugins/org.jboss.tools.maven.cdi/src/org/jboss/tools/maven/cdi/Messages.java 2012-02-23
09:10:48 UTC (rev 39039)
@@ -1,30 +0,0 @@
-/*************************************************************************************
- * Copyright (c) 2008-2011 Red Hat, Inc. and others.
- * 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:
- * JBoss by Red Hat - Initial implementation.
- ************************************************************************************/
-package org.jboss.tools.maven.cdi;
-
-import org.eclipse.osgi.util.NLS;
-
-/**
- *
- * @author snjeza
- *
- */
-public class Messages extends NLS {
- private static final String BUNDLE_NAME =
"org.jboss.tools.maven.cdi.messages"; //$NON-NLS-1$
- public static String
CDIProjectConfigurator_The_project_does_not_contain_required_facets;
- static {
- // initialize resource bundle
- NLS.initializeMessages(BUNDLE_NAME, Messages.class);
- }
-
- private Messages() {
- }
-}
Modified:
trunk/maven/plugins/org.jboss.tools.maven.cdi/src/org/jboss/tools/maven/cdi/configurators/CDIProjectConfigurator.java
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.cdi/src/org/jboss/tools/maven/cdi/configurators/CDIProjectConfigurator.java 2012-02-23
09:10:02 UTC (rev 39038)
+++
trunk/maven/plugins/org.jboss.tools.maven.cdi/src/org/jboss/tools/maven/cdi/configurators/CDIProjectConfigurator.java 2012-02-23
09:10:48 UTC (rev 39039)
@@ -24,7 +24,6 @@
import org.eclipse.m2e.core.project.MavenProjectChangedEvent;
import org.eclipse.m2e.core.project.configurator.AbstractProjectConfigurator;
import org.eclipse.m2e.core.project.configurator.ProjectConfigurationRequest;
-import org.eclipse.osgi.util.NLS;
import org.eclipse.wst.common.componentcore.ModuleCoreNature;
import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
import org.eclipse.wst.common.project.facet.core.IFacetedProject;
@@ -34,7 +33,6 @@
import org.jboss.tools.cdi.core.CDICoreNature;
import org.jboss.tools.cdi.core.CDIUtil;
import org.jboss.tools.maven.cdi.MavenCDIActivator;
-import org.jboss.tools.maven.cdi.Messages;
import org.jboss.tools.maven.core.IJBossMavenConstants;
import
org.jboss.tools.maven.core.internal.project.facet.MavenFacetInstallDataModelProvider;
import org.jboss.tools.maven.ui.Activator;
@@ -139,15 +137,8 @@
if ((currentWebVersion != null &&
currentWebVersion.compareTo(dynamicWebVersion)> -1)
|| (currentEjbVersion != null && currentEjbVersion.compareTo(ejbVersion)>
-1)) {
installCDIFacet(fproj, cdiVersion, monitor);
- } else {
- String name = "";
- if (fproj.getProject() != null) {
- name = fproj.getProject().getName();
- }
- MavenCDIActivator.log(NLS.bind(Messages.CDIProjectConfigurator_The_project_does_not_contain_required_facets,
name));
}
installM2Facet(fproj, monitor);
-
}
Deleted:
trunk/maven/plugins/org.jboss.tools.maven.cdi/src/org/jboss/tools/maven/cdi/messages.properties
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.cdi/src/org/jboss/tools/maven/cdi/messages.properties 2012-02-23
09:10:02 UTC (rev 39038)
+++
trunk/maven/plugins/org.jboss.tools.maven.cdi/src/org/jboss/tools/maven/cdi/messages.properties 2012-02-23
09:10:48 UTC (rev 39039)
@@ -1 +0,0 @@
-CDIProjectConfigurator_The_project_does_not_contain_required_facets=The {0} project does
not contain the Dynamic Web Module facet or the EJB Module facet.