Author: fbricon
Date: 2012-05-21 13:23:16 -0400 (Mon, 21 May 2012)
New Revision: 41219
Modified:
trunk/maven/plugins/org.jboss.tools.maven.jsf/src/org/jboss/tools/maven/jsf/MavenJSFActivator.java
trunk/maven/plugins/org.jboss.tools.maven.jsf/src/org/jboss/tools/maven/jsf/configurators/JSFProjectConfigurator.java
Log:
JBIDE-11914 Change log message when JSF 2.1 facet is unavailable from ERROR to WARN
Modified:
trunk/maven/plugins/org.jboss.tools.maven.jsf/src/org/jboss/tools/maven/jsf/MavenJSFActivator.java
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.jsf/src/org/jboss/tools/maven/jsf/MavenJSFActivator.java 2012-05-21
17:22:15 UTC (rev 41218)
+++
trunk/maven/plugins/org.jboss.tools.maven.jsf/src/org/jboss/tools/maven/jsf/MavenJSFActivator.java 2012-05-21
17:23:16 UTC (rev 41219)
@@ -80,6 +80,11 @@
getDefault().getLog().log(status);
}
+ public static void warn(String message) {
+ IStatus status = new Status(IStatus.WARNING, PLUGIN_ID, message);
+ getDefault().getLog().log(status);
+ }
+
public IDataModel createJSFDataModel(IFacetedProject fproj, IProjectFacetVersion
facetVersion) {
IDataModel config = (IDataModel) new JSFFacetInstallDataModelProvider().create();
LibraryInstallDelegate libraryDelegate = new LibraryInstallDelegate(fproj,
facetVersion);
Modified:
trunk/maven/plugins/org.jboss.tools.maven.jsf/src/org/jboss/tools/maven/jsf/configurators/JSFProjectConfigurator.java
===================================================================
---
trunk/maven/plugins/org.jboss.tools.maven.jsf/src/org/jboss/tools/maven/jsf/configurators/JSFProjectConfigurator.java 2012-05-21
17:22:15 UTC (rev 41218)
+++
trunk/maven/plugins/org.jboss.tools.maven.jsf/src/org/jboss/tools/maven/jsf/configurators/JSFProjectConfigurator.java 2012-05-21
17:23:16 UTC (rev 41219)
@@ -12,7 +12,8 @@
import static org.jboss.tools.maven.jsf.configurators.JSFUtils.JSF_VERSION_1_1;
import static org.jboss.tools.maven.jsf.configurators.JSFUtils.JSF_VERSION_1_2;
-import static org.jboss.tools.maven.jsf.configurators.JSFUtils.*;
+import static org.jboss.tools.maven.jsf.configurators.JSFUtils.JSF_VERSION_2_0;
+import static org.jboss.tools.maven.jsf.configurators.JSFUtils.JSF_VERSION_2_1;
import java.util.List;
@@ -85,7 +86,7 @@
try {
jsf21Version = JSF_FACET.getVersion(JSF_VERSION_2_1);
} catch (Exception e) {
- Activator.log("JSF 2.1 Facet is unavailable, fall back to 2.0");
+ MavenJSFActivator.warn("JSF 2.1 Facet is unavailable, fall back to 2.0");
jsf21Version = JSF_FACET_VERSION_2_0;
}
JSF_FACET_VERSION_2_1 = jsf21Version;
Show replies by date