new-integration-tests/src/test/java/oracle/weblogic/kubernetes/actions/impl/AppBuilder.java
public boolean buildZipArchive(
      String zipPath, 
      String srcDir
  ) {

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

    String cmd = String.format(
        "cd %s ; zip %s wlsdeploy/applications/%s.ear ", 
        srcDir, 
        zipPath,  
        params.appName());

    return Command.withParams(
        defaultCommandParams()
            .command(cmd)
            .redirect(false))
        .execute();
  }
/**
   * Build a zip archive that includes an ear file in the srcDir.
   *
   * @param zipPath zip file path for the resulting archive
   * @param srcDir source directory
   */
Build a zip archive that includes an ear file in the srcDir.
@param zipPath zip file path for the resulting archive
@param srcDir source directory
Build a zip archive that includes an ear file in the srcDir . @param zipPath zip file path for the resulting archive @param srcDir source directory
public boolean buildZipArchive(
      String zipPath, 
      String srcDir
  ) {
    if (params.appName() == null) {
      params.appName(params.srcDirList().get(0));
    }
    String cmd = String.format(
        "cd %s ; zip %s wlsdeploy/applications/%s.ear ", 
        srcDir, 
        zipPath,  
        params.appName());
    return Command.withParams(
        defaultCommandParams()
            .command(cmd)
            .redirect(false))
        .execute();
  }
public boolean buildZipArchive ( String zipPath , String srcDir ) { if ( params . appName ( ) == null ) { params . appName ( params . srcDirList ( ) . get ( 0 ) ) ; } String cmd = String . format ( "cd %s ; zip %s wlsdeploy/applications/%s.ear " , srcDir , zipPath , params . appName ( ) ) ; return Command . withParams ( defaultCommandParams ( ) . command ( cmd ) . redirect ( false ) ) . execute ( ) ; }
Build a zip archive that includes an ear file in the srcDir.
Build a zip archive that includes an ear file in the srcDir .
// make sure that we always have an app name