integration-tests/src/test/java/oracle/kubernetes/operator/utils/TestUtils.java
public static void buildWdtZip(
      String wdtArchivePath, String[] archivePaths, String tmpDirRoot) {

    try {
      // Create temp directory strucuture for the WDT archive
      String archiveRoot = tmpDirRoot + "/wdt-archive-root";
      String archiveDest = archiveRoot + "/wlsdeploy/applications";
      File archiveDestDir = new File(archiveDest);
      archiveDestDir.mkdirs();

      // Copy archives to the dest
      for (String archivePath : archivePaths) {
        copyFile(archivePath, archiveDest + "/" + new File(archivePath).getName());
      }

      // Build the WDT zip
      buildZipArchive(wdtArchivePath, archiveRoot);
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
  }
/**
   * Build a WDT zip archive, which consists of a set of archives structured as follows:
   * wlsdeploy/applications/archive1, archive2, etc
   * for example, the WDT archive with 3 artifacts could have the following...
   * wlsdeploy/applications/archive1.ear,
   * wlsdeploy/applications/coh-archive.gar, wlsdeploy/applications/mywebapp.war.
   * Copy each archive to temp location then build the WDT archive.
   *
   * @param wdtArchivePath path where new archive should be created
   * @param archivePaths   array of archives to be included in the WDT archive
   * @param tmpDirRoot     tmp directory that can be used to create the archive
   */


@param wdtArchivePath path where new archive should be created
@param archivePaths   array of archives to be included in the WDT archive
@param tmpDirRoot     tmp directory that can be used to create the archive
@param wdtArchivePath path where new archive should be created @param archivePaths array of archives to be included in the WDT archive @param tmpDirRoot tmp directory that can be used to create the archive
public static void buildWdtZip(
      String wdtArchivePath, String[] archivePaths, String tmpDirRoot) {
    try {
      String archiveRoot = tmpDirRoot + "/wdt-archive-root";
      String archiveDest = archiveRoot + "/wlsdeploy/applications";
      File archiveDestDir = new File(archiveDest);
      archiveDestDir.mkdirs();
      for (String archivePath : archivePaths) {
        copyFile(archivePath, archiveDest + "/" + new File(archivePath).getName());
      }
      buildZipArchive(wdtArchivePath, archiveRoot);
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
  }
public static void buildWdtZip ( String wdtArchivePath , String [ ] archivePaths , String tmpDirRoot ) { try { String archiveRoot = tmpDirRoot + "/wdt-archive-root" ; String archiveDest = archiveRoot + "/wlsdeploy/applications" ; File archiveDestDir = new File ( archiveDest ) ; archiveDestDir . mkdirs ( ) ; for ( String archivePath : archivePaths ) { copyFile ( archivePath , archiveDest + "/" + new File ( archivePath ) . getName ( ) ) ; } buildZipArchive ( wdtArchivePath , archiveRoot ) ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; } }
Build a WDT zip archive, which consists of a set of archives structured as follows:
 wlsdeploy/applications/archive1, archive2, etc
 for example, the WDT archive with 3 artifacts could have the following...
 wlsdeploy/applications/archive1.ear,
 wlsdeploy/applications/coh-archive.gar, wlsdeploy/applications/mywebapp.war.
Build a WDT zip archive which consists of a set of archives structured as follows : wlsdeploy / applications / archive1 archive2 etc for example the WDT archive with 3 artifacts could have the following ... wlsdeploy / applications / archive1 . ear wlsdeploy / applications / coh - archive . gar wlsdeploy / applications / mywebapp . war .
// Create temp directory strucuture for the WDT archive // Copy archives to the dest // Build the WDT zip