Preparing to deprecate onos-karaf and onos-setup-karaf commands.
Change-Id: Ie8bf9ad161733478608d82c11d59c4b5412d6689
diff --git a/tools/dev/bin/onos-karaf b/tools/dev/bin/onos-karaf
index 54b497d..8ffe1ab 100755
--- a/tools/dev/bin/onos-karaf
+++ b/tools/dev/bin/onos-karaf
@@ -4,6 +4,12 @@
# karaf using the supplied arguments.
# -----------------------------------------------------------------------------
+echo "This command is deprecated and will be removed imminently!!!"
+echo "Please use 'buck run onos-local' instead."
+echo "e.g.: buck run onos-local -- clean debug"
+echo " or: buck run onos-local -- debug"
+
+
. $ONOS_ROOT/tools/build/envDefaults
if [ -L $ONOS_TAR ]; then
echo "WARN: This script does not support deploying buck artifacts"
diff --git a/tools/dev/bin/onos-setup-karaf b/tools/dev/bin/onos-setup-karaf
index b0e891d..59b8fa9 100755
--- a/tools/dev/bin/onos-setup-karaf
+++ b/tools/dev/bin/onos-setup-karaf
@@ -10,6 +10,11 @@
[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
. $ONOS_ROOT/tools/build/envDefaults
+echo "This command is deprecated and will be removed imminently!!!"
+echo "Please use 'buck run onos-local' instead."
+echo "e.g.: buck run onos-local -- clean debug"
+echo " or: buck run onos-local -- debug"
+
# TODO: consider putting this under ~/Applications/onos/apache-karaf-...
export KARAF_ROOT=${KARAF_ROOT:-~/Applications/apache-karaf-$KARAF_VERSION}
export STAGE=$(dirname $KARAF_ROOT)