Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCurtis D'Entremont2006-06-07 15:16:38 -0400
committerCurtis D'Entremont2006-06-07 15:16:38 -0400
commite191a18c858871afd4b43e9e91b01a2f06a0b7c9 (patch)
treed81e646afe967ebf795c072007e97e6814275bad /org.eclipse.help.appserver
parentf357c1c5fde60bd03ef0eb0fec8d9cfe2ac6dc6a (diff)
downloadeclipse.platform.ua-e191a18c858871afd4b43e9e91b01a2f06a0b7c9.tar.gz
eclipse.platform.ua-e191a18c858871afd4b43e9e91b01a2f06a0b7c9.tar.xz
eclipse.platform.ua-e191a18c858871afd4b43e9e91b01a2f06a0b7c9.zip
clean up tasks
Diffstat (limited to 'org.eclipse.help.appserver')
-rw-r--r--org.eclipse.help.appserver/META-INF/MANIFEST.MF2
-rw-r--r--org.eclipse.help.appserver/src/org/eclipse/help/internal/appserver/AppserverPlugin.java23
-rw-r--r--org.eclipse.help.appserver/src/org/eclipse/help/internal/appserver/DevClassPathHelper.java2
3 files changed, 23 insertions, 4 deletions
diff --git a/org.eclipse.help.appserver/META-INF/MANIFEST.MF b/org.eclipse.help.appserver/META-INF/MANIFEST.MF
index 5a246e49e..888de02fa 100644
--- a/org.eclipse.help.appserver/META-INF/MANIFEST.MF
+++ b/org.eclipse.help.appserver/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %appserver_plugin_name
Bundle-SymbolicName: org.eclipse.help.appserver; singleton:=true
-Bundle-Version: 3.1.100.qualifier
+Bundle-Version: 3.1.200.qualifier
Bundle-ClassPath: .
Bundle-Activator: org.eclipse.help.internal.appserver.AppserverPlugin
Bundle-Vendor: %providerName
diff --git a/org.eclipse.help.appserver/src/org/eclipse/help/internal/appserver/AppserverPlugin.java b/org.eclipse.help.appserver/src/org/eclipse/help/internal/appserver/AppserverPlugin.java
index 403b00827..64bc6b0ab 100644
--- a/org.eclipse.help.appserver/src/org/eclipse/help/internal/appserver/AppserverPlugin.java
+++ b/org.eclipse.help.appserver/src/org/eclipse/help/internal/appserver/AppserverPlugin.java
@@ -9,8 +9,17 @@
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.help.internal.appserver;
-import org.eclipse.core.runtime.*;
-import org.osgi.framework.*;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IConfigurationElement;
+import org.eclipse.core.runtime.IExtension;
+import org.eclipse.core.runtime.IExtensionPoint;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.core.runtime.Plugin;
+import org.eclipse.core.runtime.Status;
+import org.osgi.framework.BundleContext;
+
/**
*/
public class AppserverPlugin extends Plugin {
@@ -42,6 +51,16 @@ public class AppserverPlugin extends Plugin {
}
return appServer;
}
+ /**
+ * Logs an Error message with an exception.
+ */
+ public static synchronized void logError(String message, Throwable ex) {
+ if (message == null)
+ message = ""; //$NON-NLS-1$
+ Status errorStatus = new Status(IStatus.ERROR, PLUGIN_ID, IStatus.OK,
+ message, ex);
+ AppserverPlugin.getDefault().getLog().log(errorStatus);
+ }
/*
* (non-Javadoc)
*
diff --git a/org.eclipse.help.appserver/src/org/eclipse/help/internal/appserver/DevClassPathHelper.java b/org.eclipse.help.appserver/src/org/eclipse/help/internal/appserver/DevClassPathHelper.java
index 1416c97bc..a45524287 100644
--- a/org.eclipse.help.appserver/src/org/eclipse/help/internal/appserver/DevClassPathHelper.java
+++ b/org.eclipse.help.appserver/src/org/eclipse/help/internal/appserver/DevClassPathHelper.java
@@ -93,7 +93,7 @@ public class DevClassPathHelper {
is.close();
}
} catch (IOException e) {
- // TODO consider logging here
+ AppserverPlugin.logError("Help failed to load properties file " + url, e); //$NON-NLS-1$
}
return props;
}

Back to the top