integration-tests/src/test/java/oracle/kubernetes/operator/MiiConfigUpdateBaseTest.java
protected void buildApp(Domain domain, String scriptName) {
    Map<String, Object> domainMap = domain.getDomainMap();
    String resultsDir = (String) domainMap.get("resultDir");
    ExecResult result = null;

    StringBuffer buildAppCmd = new StringBuffer("export WDT_VERSION=");
    buildAppCmd.append(BaseTest.WDT_VERSION)
        .append(" && ")
        .append(resultsDir)
        .append("/samples/model-in-image/")
        .append(scriptName)
        .append(" ")
        .append(getUserProjectsDir())
        .append(" ")
        .append(domain.getDomainUid())
        .append(" ")
        .append(getProjectRoot())
        .append("/integration-tests/src/test/resources/model-in-image");
    LoggerHelper.getLocal().log(Level.INFO, "Command to build app: " + buildAppCmd);
    try {
      result = TestUtils.execOrAbortProcess(buildAppCmd.toString());
    } catch (Exception ex) {
      ex.printStackTrace();
      StringBuffer errorMsg = new StringBuffer("FAILURE: command: ");
      errorMsg
          .append(buildAppCmd)
          .append(" failed, returned ")
          .append(result.stdout())
          .append("\n")
          .append(result.stderr());
      fail(errorMsg.toString());
    }
  }
/**
   * Build a webapp to deploy to the cluster. It's used to established
   * a connection to MySQL DB
   * @param domain the Domain object where to get domain config values
   * @param scriptName secret name containing the username, password
   *        and JDBC URL to connect to  MySQL
   */
Build a webapp to deploy to the cluster. It's used to established
a connection to MySQL DB
@param domain the Domain object where to get domain config values
@param scriptName secret name containing the username, password
and JDBC URL to connect to  MySQL
Build a webapp to deploy to the cluster . It ' s used to established a connection to MySQL DB @param domain the Domain object where to get domain config values @param scriptName secret name containing the username password and JDBC URL to connect to MySQL
protected void buildApp(Domain domain, String scriptName) {
    Map<String, Object> domainMap = domain.getDomainMap();
    String resultsDir = (String) domainMap.get("resultDir");
    ExecResult result = null;
    StringBuffer buildAppCmd = new StringBuffer("export WDT_VERSION=");
    buildAppCmd.append(BaseTest.WDT_VERSION)
        .append(" && ")
        .append(resultsDir)
        .append("/samples/model-in-image/")
        .append(scriptName)
        .append(" ")
        .append(getUserProjectsDir())
        .append(" ")
        .append(domain.getDomainUid())
        .append(" ")
        .append(getProjectRoot())
        .append("/integration-tests/src/test/resources/model-in-image");
    LoggerHelper.getLocal().log(Level.INFO, "Command to build app: " + buildAppCmd);
    try {
      result = TestUtils.execOrAbortProcess(buildAppCmd.toString());
    } catch (Exception ex) {
      ex.printStackTrace();
      StringBuffer errorMsg = new StringBuffer("FAILURE: command: ");
      errorMsg
          .append(buildAppCmd)
          .append(" failed, returned ")
          .append(result.stdout())
          .append("\n")
          .append(result.stderr());
      fail(errorMsg.toString());
    }
  }
protected void buildApp ( Domain domain , String scriptName ) { Map < String , Object > domainMap = domain . getDomainMap ( ) ; String resultsDir = ( String ) domainMap . get ( "resultDir" ) ; ExecResult result = null ; StringBuffer buildAppCmd = new StringBuffer ( "export WDT_VERSION=" ) ; buildAppCmd . append ( BaseTest . WDT_VERSION ) . append ( " && " ) . append ( resultsDir ) . append ( "/samples/model-in-image/" ) . append ( scriptName ) . append ( " " ) . append ( getUserProjectsDir ( ) ) . append ( " " ) . append ( domain . getDomainUid ( ) ) . append ( " " ) . append ( getProjectRoot ( ) ) . append ( "/integration-tests/src/test/resources/model-in-image" ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "Command to build app: " + buildAppCmd ) ; try { result = TestUtils . execOrAbortProcess ( buildAppCmd . toString ( ) ) ; } catch ( Exception ex ) { ex . printStackTrace ( ) ; StringBuffer errorMsg = new StringBuffer ( "FAILURE: command: " ) ; errorMsg . append ( buildAppCmd ) . append ( " failed, returned " ) . append ( result . stdout ( ) ) . append ( "\n" ) . append ( result . stderr ( ) ) ; fail ( errorMsg . toString ( ) ) ; } }
Build a webapp to deploy to the cluster.
Build a webapp to deploy to the cluster .