[eclipse-yocto] [PATCH 3/4] setup.sh: rename P2 debug trace option
Chin Huat Ang
chin.huat.ang at intel.com
Tue Dec 18 21:01:34 PST 2018
* P2_INSTALL_DEBUG -> P2_INSTALL_TRACE
* P2_INSTALL_TRACE enabled by default
* debug.ini -> trace.ini
Signed-off-by: Chin Huat Ang <chin.huat.ang at intel.com>
---
scripts/debug.ini | 2 --
scripts/setup.sh | 8 ++++----
scripts/trace.ini | 2 ++
3 files changed, 6 insertions(+), 6 deletions(-)
delete mode 100644 scripts/debug.ini
create mode 100644 scripts/trace.ini
diff --git a/scripts/debug.ini b/scripts/debug.ini
deleted file mode 100644
index ee240af..0000000
--- a/scripts/debug.ini
+++ /dev/null
@@ -1,2 +0,0 @@
-org.eclipse.equinox.p2.core/debug=true
-org.eclipse.equinox.p2.core/artifacts/mirrors=true
diff --git a/scripts/setup.sh b/scripts/setup.sh
index 7e05d25..882869c 100755
--- a/scripts/setup.sh
+++ b/scripts/setup.sh
@@ -230,8 +230,8 @@ check_local_version()
return 0
}
-# Don't enable P2 debug traces by default
-P2_INSTALL_DEBUG=${P2_INSTALL_DEBUG:=0}
+# Enable P2 debug traces by default
+P2_INSTALL_TRACE=1
# install a feature with version requirement [min, max]
#$1: reporsitory url
@@ -266,11 +266,11 @@ update_feature_remote()
fi
[ "x$installIU" = "x" ] && err_exit 1 "Can NOT find candidates of $2 version($3, $4) at $1!"
- [ "$P2_INSTALL_DEBUG" == "1" ] && DEBUG_OPTS="-debug ./debug.ini"
+ [ "$P2_INSTALL_TRACE" == "1" ] && TRACE_OPTS="-debug ./trace.ini"
installIU="$2/$installIU"
java ${PROXY_PARAM} -jar ${LAUNCHER} \
- $DEBUG_OPTS \
+ $TRACE_OPTS \
-application org.eclipse.equinox.p2.director \
-destination ./eclipse \
-profile SDKProfile \
diff --git a/scripts/trace.ini b/scripts/trace.ini
new file mode 100644
index 0000000..ee240af
--- /dev/null
+++ b/scripts/trace.ini
@@ -0,0 +1,2 @@
+org.eclipse.equinox.p2.core/debug=true
+org.eclipse.equinox.p2.core/artifacts/mirrors=true
--
2.7.4
More information about the eclipse-yocto
mailing list