integration-tests/src/test/java/oracle/kubernetes/operator/utils/Domain.java
private void copyCreateDomainPy() throws IOException {

    if (domainMap.containsKey("createDomainPyScript")) {
      if (domainMap.containsKey("domainHomeImageBase")) {
        // copy create domain py script to cloned location for domain in image case
        if (domainMap.containsKey("createDomainPyScript")) {
          Files.copy(
              new File(BaseTest.getProjectRoot() + "/" + domainMap.get("createDomainPyScript"))
                  .toPath(),
              new File(domainHomeImageBuildPath + "/container-scripts/create-wls-domain.py")
                  .toPath(),
              StandardCopyOption.REPLACE_EXISTING);
        }
      } else if (domainMap.containsKey("rcuDatabaseURL")) {
        Files.copy(
            new File(BaseTest.getProjectRoot() + "/" + domainMap.get("createDomainPyScript"))
                .toPath(),
            new File(
                resultsDir
                    + "/samples/scripts/create-fmw-infrastructure-domain/domain-home-on-pv/"
                    + "common/createFMWDomain.py")
                .toPath(),
            StandardCopyOption.REPLACE_EXISTING);
      } else {
        // domain on pv case
        Files.copy(
            new File(BaseTest.getProjectRoot() + "/" + domainMap.get("createDomainPyScript"))
                .toPath(),
            new File(
                resultsDir
                    + "/samples/scripts/create-weblogic-domain/domain-home-on-pv/wlst/create-domain.py")
                .toPath(),
            StandardCopyOption.REPLACE_EXISTING);
      }
    }
  }
/**
   * Option to provide custom create-domain.py script. Copies create-domain.py to the correct
   * location if domain map contains createDomainPyScript attribute.
   *
   * @throws IOException if error occurs when readin or writing the file
   */
Option to provide custom create-domain.py script. Copies create-domain.py to the correct
location if domain map contains createDomainPyScript attribute.

@throws IOException if error occurs when readin or writing the file
Option to provide custom create - domain . py script . Copies create - domain . py to the correct location if domain map contains createDomainPyScript attribute . @throws IOException if error occurs when readin or writing the file
private void copyCreateDomainPy() throws IOException {
    if (domainMap.containsKey("createDomainPyScript")) {
      if (domainMap.containsKey("domainHomeImageBase")) {
        if (domainMap.containsKey("createDomainPyScript")) {
          Files.copy(
              new File(BaseTest.getProjectRoot() + "/" + domainMap.get("createDomainPyScript"))
                  .toPath(),
              new File(domainHomeImageBuildPath + "/container-scripts/create-wls-domain.py")
                  .toPath(),
              StandardCopyOption.REPLACE_EXISTING);
        }
      } else if (domainMap.containsKey("rcuDatabaseURL")) {
        Files.copy(
            new File(BaseTest.getProjectRoot() + "/" + domainMap.get("createDomainPyScript"))
                .toPath(),
            new File(
                resultsDir
                    + "/samples/scripts/create-fmw-infrastructure-domain/domain-home-on-pv/"
                    + "common/createFMWDomain.py")
                .toPath(),
            StandardCopyOption.REPLACE_EXISTING);
      } else {
        Files.copy(
            new File(BaseTest.getProjectRoot() + "/" + domainMap.get("createDomainPyScript"))
                .toPath(),
            new File(
                resultsDir
                    + "/samples/scripts/create-weblogic-domain/domain-home-on-pv/wlst/create-domain.py")
                .toPath(),
            StandardCopyOption.REPLACE_EXISTING);
      }
    }
  }
private void copyCreateDomainPy ( ) throws IOException { if ( domainMap . containsKey ( "createDomainPyScript" ) ) { if ( domainMap . containsKey ( "domainHomeImageBase" ) ) { if ( domainMap . containsKey ( "createDomainPyScript" ) ) { Files . copy ( new File ( BaseTest . getProjectRoot ( ) + "/" + domainMap . get ( "createDomainPyScript" ) ) . toPath ( ) , new File ( domainHomeImageBuildPath + "/container-scripts/create-wls-domain.py" ) . toPath ( ) , StandardCopyOption . REPLACE_EXISTING ) ; } } else if ( domainMap . containsKey ( "rcuDatabaseURL" ) ) { Files . copy ( new File ( BaseTest . getProjectRoot ( ) + "/" + domainMap . get ( "createDomainPyScript" ) ) . toPath ( ) , new File ( resultsDir + "/samples/scripts/create-fmw-infrastructure-domain/domain-home-on-pv/" + "common/createFMWDomain.py" ) . toPath ( ) , StandardCopyOption . REPLACE_EXISTING ) ; } else { Files . copy ( new File ( BaseTest . getProjectRoot ( ) + "/" + domainMap . get ( "createDomainPyScript" ) ) . toPath ( ) , new File ( resultsDir + "/samples/scripts/create-weblogic-domain/domain-home-on-pv/wlst/create-domain.py" ) . toPath ( ) , StandardCopyOption . REPLACE_EXISTING ) ; } } }
Option to provide custom create-domain.py script.
Option to provide custom create - domain . py script .
// copy create domain py script to cloned location for domain in image case // domain on pv case