Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Ross2012-11-05 21:18:08 +0000
committerJohn Ross2012-11-05 21:36:54 +0000
commitec21eb4e37d764934e84fac5ee09179f3d66b12b (patch)
tree8418b476b1f2818098d5ff6131aedf3cd34c1167 /bundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/commands/ConsoleMessages.properties
parentc343180660d3ee829d18ed3997e50c5f71ce85e4 (diff)
downloadrt.equinox.bundles-ec21eb4e37d764934e84fac5ee09179f3d66b12b.tar.gz
rt.equinox.bundles-ec21eb4e37d764934e84fac5ee09179f3d66b12b.tar.xz
rt.equinox.bundles-ec21eb4e37d764934e84fac5ee09179f3d66b12b.zip
Bug 348993: Allow to stop a thread from console (e.g. main thread that is caught in an endless loop)v20121105-213654I20121106-0800
The existing threads command was updated to support additional syntax. The full syntax is now (t | threads) [stop <thread> [<throwable>]] where <thread> is the thread name, and <throwable> is the fully qualified class name of something extending java.lang.Throwable and visible to the console bundle's class loader. If <throwable> is unspecified, the default is java.lang.IllegalStateException. The <throwable> will be created with a translatable message indicating the thread was stopped by the OSGi Console, if a constructor accepting a String as the sole parameter exists. Otherwise, the default constructor is used. The <throwable> is initialized with the target thread's stack trace and a cause of java.lang.RuntimeException which will also contain the translatable message. The cause will contain the stack trace of the current thread.
Diffstat (limited to 'bundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/commands/ConsoleMessages.properties')
-rwxr-xr-xbundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/commands/ConsoleMessages.properties3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/commands/ConsoleMessages.properties b/bundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/commands/ConsoleMessages.properties
index ad516ea0f..cae002d74 100755
--- a/bundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/commands/ConsoleMessages.properties
+++ b/bundles/org.eclipse.equinox.console/src/org/eclipse/equinox/console/commands/ConsoleMessages.properties
@@ -100,3 +100,6 @@ CONSOLE_DISABLED_BUNDLE_REASON=Reason(s):\t{0} (policy={1})
CONSOLE_STOP_MESSAGE=Really want to stop Equinox? (y/n; default=y)
CONSOLE_STOP_CONFIRMATION_YES=y
CONSOLE_STOP_ERROR_READ_CONFIRMATION=Error while reading confirmation
+THREADS_THREAD_DOES_NOT_EXIST=Thread does not exist: {0}
+THREADS_THREAD_STOPPED_BY_CONSOLE=Thread "{0}" stopped by the OSGi Console.
+THREADS_UNRECOGNIZED_ACTION=Unrecognized action. Supported actions are {stop}.

Back to the top