Creates a new instance of ARG_target
super(pa);
if(parameters.isEmpty()){
helpUsage(sm.getString("enterprise.tools.upgrade.cli.argument_missing","--target/-t"));
System.exit(1);
}
String targetDir = (String)parameters.firstElement();
if(!utils.isValidTargetPath(targetDir)){
helpUsage();
_logger.severe(sm.getString("enterprise.tools.upgrade.cli.not_valid_target_install"));
System.exit(1);
}
//For backward compatibility if the target is the same as the install directory
//we use the setting of AS_DEF_DOMAINS_PATH as before for the domains root
if(!new File(targetDir).equals(new File(commonInfo.getTargetInstallDir()))) {
commonInfo.setTargetDomainRoot(targetDir);
}
commonInfo.enlistDomainsFromSource();