new-integration-tests/src/test/java/oracle/weblogic/kubernetes/actions/impl/AppBuilder.java
public boolean buildCoherence() {
    // prepare the archive directory and copy over the app src
    try {
      cleanupDirectory(ARCHIVE_SRC_DIR);
      checkDirectory(ARCHIVE_SRC_DIR);
      for (String item : params.srcDirList()) {
        copyFolder(APP_DIR + "/" + item, ARCHIVE_SRC_DIR);
      }
    } catch (IOException ioe) {
      getLogger().info("Failed to get the directory " + ARCHIVE_DIR + " ready", ioe);
      return false;
    }

    // make sure that we always have an app name
    if (params.appName() == null) {
      params.appName(params.srcDirList().get(0));
    }

    // build the app archive
    String jarPath = String.format("%s.gar", params.appName());
    boolean jarBuilt = buildJarArchive(jarPath, ARCHIVE_SRC_DIR);

    // build a zip file that can be passed to WIT
    String zipPath = String.format("%s/%s.zip", ARCHIVE_DIR, params.appName());
    boolean zipBuilt = buildCoherenceZipArchive(zipPath, ARCHIVE_DIR);

    return jarBuilt && zipBuilt;
  }
/**
   * Build an application archive using a pre-populated AppParams instance.
   * @return true if the command succeeds
   */
Build an application archive using a pre-populated AppParams instance.
@return true if the command succeeds
Build an application archive using a pre - populated AppParams instance . @return true if the command succeeds
public boolean buildCoherence() {
    try {
      cleanupDirectory(ARCHIVE_SRC_DIR);
      checkDirectory(ARCHIVE_SRC_DIR);
      for (String item : params.srcDirList()) {
        copyFolder(APP_DIR + "/" + item, ARCHIVE_SRC_DIR);
      }
    } catch (IOException ioe) {
      getLogger().info("Failed to get the directory " + ARCHIVE_DIR + " ready", ioe);
      return false;
    }
    if (params.appName() == null) {
      params.appName(params.srcDirList().get(0));
    }
    String jarPath = String.format("%s.gar", params.appName());
    boolean jarBuilt = buildJarArchive(jarPath, ARCHIVE_SRC_DIR);
    String zipPath = String.format("%s/%s.zip", ARCHIVE_DIR, params.appName());
    boolean zipBuilt = buildCoherenceZipArchive(zipPath, ARCHIVE_DIR);
    return jarBuilt && zipBuilt;
  }
public boolean buildCoherence ( ) { try { cleanupDirectory ( ARCHIVE_SRC_DIR ) ; checkDirectory ( ARCHIVE_SRC_DIR ) ; for ( String item : params . srcDirList ( ) ) { copyFolder ( APP_DIR + "/" + item , ARCHIVE_SRC_DIR ) ; } } catch ( IOException ioe ) { getLogger ( ) . info ( "Failed to get the directory " + ARCHIVE_DIR + " ready" , ioe ) ; return false ; } if ( params . appName ( ) == null ) { params . appName ( params . srcDirList ( ) . get ( 0 ) ) ; } String jarPath = String . format ( "%s.gar" , params . appName ( ) ) ; boolean jarBuilt = buildJarArchive ( jarPath , ARCHIVE_SRC_DIR ) ; String zipPath = String . format ( "%s/%s.zip" , ARCHIVE_DIR , params . appName ( ) ) ; boolean zipBuilt = buildCoherenceZipArchive ( zipPath , ARCHIVE_DIR ) ; return jarBuilt && zipBuilt ; }
Build an application archive using a pre-populated AppParams instance.
Build an application archive using a pre - populated AppParams instance .
// prepare the archive directory and copy over the app src // make sure that we always have an app name // build the app archive // build a zip file that can be passed to WIT