Update to the tools scripts:
* Update to envDefaults: if environmental varialbe ONOS_CELL is set,
the load it, so its variables can be used by other scripts
* Modifications inside tools/dev/bash_profile:
- Update the setting of JAVA_HOME so it works for Ubuntu with
OpenJDK-1.7
- Removed "." from being added to the PATH, because it is a security hole
diff --git a/tools/build/envDefaults b/tools/build/envDefaults
index f1e1346..9c17212 100644
--- a/tools/build/envDefaults
+++ b/tools/build/envDefaults
@@ -25,6 +25,9 @@
export ONOS_TAR=$ONOS_STAGE.tar.gz
# Defaults for ONOS testing using remote machines.
+if [ -n "${ONOS_CELL}" -a -f $ONOS_ROOT/tools/test/cells/${ONOS_CELL} ]; then
+ . $ONOS_ROOT/tools/test/cells/${ONOS_CELL}
+fi
export ONOS_INSTALL_DIR="/opt/onos" # Installation directory on remote
export OCI="${OCI:-192.168.56.101}" # ONOS Controller Instance
export ONOS_USER="sdn" # ONOS user on remote system