Fix for bug 383097 (CommandShell improvement)
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.ui / src / org / eclipse / linuxtools / internal / lttng2 / ui / views / control / service / LTTngControlServiceConstants.java
index a1bdac402f6f9d2cff0c5daf21399d72d9323e75..fd4b600cd01f8722b132cdac0e2c734a01d89ac0 100644 (file)
@@ -1,12 +1,12 @@
 /**********************************************************************
  * Copyright (c) 2012 Ericsson
- * 
+ *
  * 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: 
+ *
+ * Contributors:
  *   Bernd Hufmann - Initial API and implementation
  **********************************************************************/
 package org.eclipse.linuxtools.internal.lttng2.ui.views.control.service;
@@ -14,16 +14,20 @@ package org.eclipse.linuxtools.internal.lttng2.ui.views.control.service;
 import java.util.regex.Pattern;
 
 /**
- * <b><u>LTTngControlServiceConstants</u></b>
  * <p>
  * Constants for LTTng Control Service.
  * </p>
+ *
+ * @author Bernd Hufmann
  */
 public class LTTngControlServiceConstants {
 
     // ------------------------------------------------------------------------
     // Version constants
     // ------------------------------------------------------------------------
+    /**
+     * Constant for the LTTng toolchain version
+     */
     public final static String LTTNG_MAJOR_VERSION_2_0 = "2.0"; //$NON-NLS-1$
 
     // ------------------------------------------------------------------------
@@ -50,35 +54,35 @@ public class LTTngControlServiceConstants {
      */
     public final static String COMMAND_LIST_UST = COMMAND_LIST + "-u";  //$NON-NLS-1$
     /**
-     * Command to create a session. 
+     * Command to create a session.
      */
     public final static String COMMAND_CREATE_SESSION = " create "; //$NON-NLS-1$
     /**
-     * Command to destroy a session. 
+     * Command to destroy a session.
      */
     public final static String COMMAND_DESTROY_SESSION = " destroy "; //$NON-NLS-1$
     /**
-     * Command to destroy a session. 
+     * Command to destroy a session.
      */
     public final static String COMMAND_START_SESSION = " start "; //$NON-NLS-1$
     /**
-     * Command to destroy a session. 
+     * Command to destroy a session.
      */
     public final static String COMMAND_STOP_SESSION = " stop "; //$NON-NLS-1$
     /**
-     * Command to enable a channel. 
+     * Command to enable a channel.
      */
     public final static String COMMAND_ENABLE_CHANNEL = " enable-channel "; //$NON-NLS-1$
     /**
-     * Command to disable a channel. 
+     * Command to disable a channel.
      */
     public final static String COMMAND_DISABLE_CHANNEL = " disable-channel "; //$NON-NLS-1$
     /**
-     * Command to enable a event. 
+     * Command to enable a event.
      */
     public final static String COMMAND_ENABLE_EVENT = " enable-event "; //$NON-NLS-1$
     /**
-     * Command to disable a event. 
+     * Command to disable a event.
      */
     public final static String COMMAND_DISABLE_EVENT = " disable-event "; //$NON-NLS-1$
     /**
@@ -168,7 +172,7 @@ public class LTTngControlServiceConstants {
     /**
      * Optional command line option for configuring a channel's overwrite mode.
      */
-    public final static String OPTION_OVERWRITE = " --overwrite ";  //$NON-NLS-1$ 
+    public final static String OPTION_OVERWRITE = " --overwrite ";  //$NON-NLS-1$
     /**
      * Optional command line option for configuring a channel's number of sub buffers.
      */
@@ -186,7 +190,7 @@ public class LTTngControlServiceConstants {
      */
     public final static String OPTION_READ_TIMER = " --read-timer ";  //$NON-NLS-1$
     /**
-     * Command line option for printing the help of a specif command 
+     * Command line option for printing the help of a specif command
      */
     public final static String OPTION_HELP = " -h ";  //$NON-NLS-1$
 
@@ -196,7 +200,7 @@ public class LTTngControlServiceConstants {
     /**
      * Pattern to match the version.
      */
-    public final static Pattern VERSION_PATTERN = Pattern.compile("\\s*lttng\\s+version\\s+(\\d+\\.\\d+\\.\\d+).*"); //$NON-NLS-1$
+    public final static Pattern VERSION_PATTERN = Pattern.compile(".*lttng\\s+version\\s+(\\d+\\.\\d+\\.\\d+).*"); //$NON-NLS-1$
     /**
      * Pattern to match for error output
      */
@@ -296,7 +300,7 @@ public class LTTngControlServiceConstants {
     /**
      * Pattern to match for session information (lttng create <session name>)
      */
-    public final static Pattern CREATE_SESSION_NAME_PATTERN = Pattern.compile("\\s*Session\\s+(.*)\\s+created\\."); //$NON-NLS-1$
+    public final static Pattern CREATE_SESSION_NAME_PATTERN = Pattern.compile(".*Session\\s+(.*)\\s+created\\."); //$NON-NLS-1$
     /**
      * Pattern to match for session path information (lttng create <session name>)
      */
This page took 0.025685 seconds and 5 git commands to generate.