FileDocCategorySizeDatePackage
ARG_domain.javaAPI DocGlassfish v2 API3040Fri May 04 22:35:04 BST 2007com.sun.enterprise.tools.upgrade.common.arguments

ARG_domain

public class ARG_domain extends ArgumentHandler
author
Hans Hrasna

Fields Summary
Constructors Summary
public ARG_domain(ParsedArgument pa)
Creates a new instance of ARG_domain

        super(pa);       
        if (parameters.isEmpty()) {
            String msg = sm.getString("enterprise.tools.upgrade.cli.argument_missing", "--domain/-d");
            helpUsage(msg);
        }
        String domainName = (String)parameters.firstElement();
        if(!commonInfo.getDomainList().contains(domainName)){
            helpUsage();
            _logger.severe(sm.getString("enterprise.tools.upgrade.cli.domain_does_not_exist",domainName));
            System.exit(1);
        }
        interactiveMap.put(ArgsParser.DOMAIN + "-" + domainName,  domainName); //This is the encoding for the CLI interactive mode
        commonInfo.setCurrentDomain(domainName);
        commonInfo.addDomainOptionName(domainName);
        commonInfo.setCertificateConversionFlag(true);
    
Methods Summary