Improved unit tests for AveragingProgressTracker class
[controller.git] / opendaylight / md-sal / sal-karaf-xsql / src / main / java / org / opendaylight / controller / xsql / xsql.java
index b7994dc1bf317c872bc501ca42f4a6b7b42bd43a..fc171e5c608f3f512af0a95fd4dadf2b85f2b48b 100644 (file)
@@ -1,3 +1,11 @@
+/*
+ * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others.  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
+ */
+
 package org.opendaylight.controller.xsql;
 
 import org.apache.karaf.shell.commands.Argument;
@@ -6,6 +14,10 @@ import org.apache.karaf.shell.commands.Option;
 import org.apache.karaf.shell.console.OsgiCommandSupport;
 import org.opendaylight.controller.md.sal.dom.xsql.XSQLAdapter;
 
+/**
+ * To be removed in Nitrogen
+ */
+@Deprecated
 @Command(scope = "odl", name = "xsql", description = "XSQL Karaf Command")
 public class xsql extends OsgiCommandSupport {
 
@@ -16,6 +28,10 @@ public class xsql extends OsgiCommandSupport {
     private String argument;
 
     protected Object doExecute() throws Exception {
+        if(argument==null){
+            System.out.println("Nothing to do..., please specify a command.");
+            return null;
+        }
         XSQLAdapter.getInstance().processCommand(new StringBuffer(argument),
                 System.out);
         return null;