Author: snjeza
Date: 2011-05-12 17:00:29 -0400 (Thu, 12 May 2011)
New Revision: 31278
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/messages.properties
Log:
JBIDE-8939 Add project name into info log messages 'The project doesn't contain
the Web Module facet'
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 2011-05-12
20:39:21 UTC (rev 31277)
+++
trunk/maven/plugins/org.jboss.tools.maven.cdi/src/org/jboss/tools/maven/cdi/configurators/CDIProjectConfigurator.java 2011-05-12
21:00:29 UTC (rev 31278)
@@ -20,6 +20,7 @@
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;
@@ -119,7 +120,11 @@
private void installWarFacets(IFacetedProject fproj, String cdiVersion,IProgressMonitor
monitor) throws CoreException {
if (!fproj.hasProjectFacet(dynamicWebFacet)) {
- MavenCDIActivator.log(Messages.CDIProjectConfigurator_The_project_does_not_contain_the_Web_Module_facet);
+ String name = "";
+ if (fproj.getProject() != null) {
+ name = fproj.getProject().getName();
+ }
+ MavenCDIActivator.log(NLS.bind(Messages.CDIProjectConfigurator_The_project_does_not_contain_the_Web_Module_facet,
name));
}
installCDIFacet(fproj, cdiVersion, monitor);
installM2Facet(fproj, monitor);
Modified:
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 2011-05-12
20:39:21 UTC (rev 31277)
+++
trunk/maven/plugins/org.jboss.tools.maven.cdi/src/org/jboss/tools/maven/cdi/messages.properties 2011-05-12
21:00:29 UTC (rev 31278)
@@ -1 +1 @@
-CDIProjectConfigurator_The_project_does_not_contain_the_Web_Module_facet=The project
doesn't contain the Web Module facet.
+CDIProjectConfigurator_The_project_does_not_contain_the_Web_Module_facet=The {0} project
doesn't contain the Web Module facet.
Show replies by date