"asupgrade", "-c", "-s",
domainDir+File.separator+domainName,
"-t", installDir +File.separator+ "domains",
"-noprompt" };
ProcessExecutor pe = new ProcessExecutor(upgradeCmd, UPGRADE_TIMEOUT);
/*
* ProcessExecutor's constructor replaces all the '/'s with '\' in case the OS is Windows.
* We don't want that for CMD /c. Hence need to replace it again
*/
if(OS.isWindows())
upgradeCmd[1] ="/c";
CLILogger.getInstance().printDetailMessage((getLocalizedString("StartingUpgrade")));
pe.execute(); // timeout in 600sec or 10min
Process process = pe.getSubProcess();
int exitValue = process.waitFor();
if (exitValue != 0) {
throw new CommandException(getLocalizedString("UpgradeFailed"));
}else {
CLILogger.getInstance().printDetailMessage((getLocalizedString("UpgradeSuccessful")));