new-integration-tests/src/test/java/oracle/weblogic/kubernetes/actions/impl/primitive/Installer.java
public boolean download() {
 
    boolean downloadSucceeded = true;
    boolean unzipSucceeded = true;
    if (params.verify()
        && new File(DOWNLOAD_DIR, getInstallerFileName(params.type())).exists()) {
      getLogger().fine("File {0} already exists.", getInstallerFileName(params.type()));
    } else {
      // check and make sure DOWNLOAD_DIR exists; will create it if it is missing
      checkDirectory(DOWNLOAD_DIR);
      
      // we are about to download the installer. We need to get the real version that is requested
      try {
        params.location(getActualLocationIfNeeded(params.location(), params.type()));
      } catch (RuntimeException re) {
        // already logged
        return false;
      }
      
      downloadSucceeded = Command.withParams(
          defaultCommandParams() 
              .command(buildDownloadCommand())
              .redirect(params.redirect()))
          .execute();
    }
    if (params.unzip()) {
      // only unzip WIT once
      if (!(doesFileExist(IMAGE_TOOL))) {
        unzipSucceeded = unzip();
      }
    }
    return downloadSucceeded && unzipSucceeded;
  }
/**
   * Download and install the tool using the params.
   * @return true if the command succeeds 
   */
Download and install the tool using the params.
@return true if the command succeeds
Download and install the tool using the params . @return true if the command succeeds
public boolean download() {
    boolean downloadSucceeded = true;
    boolean unzipSucceeded = true;
    if (params.verify()
        && new File(DOWNLOAD_DIR, getInstallerFileName(params.type())).exists()) {
      getLogger().fine("File {0} already exists.", getInstallerFileName(params.type()));
    } else {
      checkDirectory(DOWNLOAD_DIR);
      try {
        params.location(getActualLocationIfNeeded(params.location(), params.type()));
      } catch (RuntimeException re) {
        return false;
      }
      downloadSucceeded = Command.withParams(
          defaultCommandParams() 
              .command(buildDownloadCommand())
              .redirect(params.redirect()))
          .execute();
    }
    if (params.unzip()) {
      if (!(doesFileExist(IMAGE_TOOL))) {
        unzipSucceeded = unzip();
      }
    }
    return downloadSucceeded && unzipSucceeded;
  }
public boolean download ( ) { boolean downloadSucceeded = true ; boolean unzipSucceeded = true ; if ( params . verify ( ) && new File ( DOWNLOAD_DIR , getInstallerFileName ( params . type ( ) ) ) . exists ( ) ) { getLogger ( ) . fine ( "File {0} already exists." , getInstallerFileName ( params . type ( ) ) ) ; } else { checkDirectory ( DOWNLOAD_DIR ) ; try { params . location ( getActualLocationIfNeeded ( params . location ( ) , params . type ( ) ) ) ; } catch ( RuntimeException re ) { return false ; } downloadSucceeded = Command . withParams ( defaultCommandParams ( ) . command ( buildDownloadCommand ( ) ) . redirect ( params . redirect ( ) ) ) . execute ( ) ; } if ( params . unzip ( ) ) { if ( ! ( doesFileExist ( IMAGE_TOOL ) ) ) { unzipSucceeded = unzip ( ) ; } } return downloadSucceeded && unzipSucceeded ; }
Download and install the tool using the params.
Download and install the tool using the params .
// check and make sure DOWNLOAD_DIR exists; will create it if it is missing // we are about to download the installer. We need to get the real version that is requested // already logged // only unzip WIT once