@when 'java.connected'
@when_not 'java.installed'
function install() {
java_major=$(config-get 'java-major')
javasdk_license_accepted=`config-get accept-ibm-javasdk-license`
if [ $javasdk_license_accepted == "False" ]; then
# Removes IBM Java SDK if License is not accepted
status-set maintenance "Removing IBM Java SDK (if installed) as the license is not accepted"
remove_javasdk_software
status-set blocked "License not accepted; set 'accept-ibm-javasdk-license' to 'True' to accept the license"
elif [ $javasdk_license_accepted == "True" ]; then
javasdk_installed=`is_javasdk_installed`
cd $ARCHIVE_DIR
echo "LICENSE_ACCEPTED=TRUE" >> installer.properties
echo "USER_INSTALL_DIR=$JAVASDK_INSTALL_PATH" >> installer.properties
echo "INSTALLER_UI=silent" >> installer.properties
download_SDK
status-set maintenance "Installing IBM Java SDK"
$ARCHIVE_DIR/$cfg_pkg_name -i silent -f $ARCHIVE_DIR/installer.properties
set_java_path=`check_javapath`
........
........
...etc...