summaryrefslogtreecommitdiffstats
path: root/deployment/zip/src/main
diff options
context:
space:
mode:
authorKanagaraj Manickam <kanagaraj.manickam@huawei.com>2017-08-24 14:31:13 +0000
committerGerrit Code Review <gerrit@onap.org>2017-08-24 14:31:13 +0000
commit42ad121a52d01dd203c529f2ba7753f82d45ec21 (patch)
treeb25c050f12fbbd9dcd8ca5a1717766c0d1d38000 /deployment/zip/src/main
parentb528f03229314db5ddb6e4ffce480b730ea4c24e (diff)
parentfbde78843d35c2c233c9e9dfcd43214f5893ac89 (diff)
Merge "Enable remote debugging for onapcli"
Diffstat (limited to 'deployment/zip/src/main')
-rw-r--r--deployment/zip/src/main/release/bin/onap.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/deployment/zip/src/main/release/bin/onap.sh b/deployment/zip/src/main/release/bin/onap.sh
index e8970848..9650ccd1 100644
--- a/deployment/zip/src/main/release/bin/onap.sh
+++ b/deployment/zip/src/main/release/bin/onap.sh
@@ -28,4 +28,10 @@ do
CLASSPATH=$CLASSPATH:$entry
done
-java -classpath $CLASSPATH org.onap.cli.main.OnapCli "$@"
+if [ "$ONAP_CLI_DEBUG" = "true" ]
+then
+ ${ONAP_CLI_DEBUG_PORT:=5005}
+ java -Xdebug -Xrunjdwp:transport=dt_socket,address=$ONAP_CLI_DEBUG_PORT,server=y -classpath $CLASSPATH org.onap.cli.main.OnapCli "$@"
+else
+ java -classpath $CLASSPATH org.onap.cli.main.OnapCli "$@"
+fi