FileDocCategorySizeDatePackage
ARG_source.javaAPI DocGlassfish v2 API2757Fri May 04 22:35:06 BST 2007com.sun.enterprise.tools.upgrade.common.arguments

ARG_source

public class ARG_source extends ArgumentHandler
author
Hans Hrasna

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

        super(pa);
        if(parameters.isEmpty()){
            helpUsage(sm.getString("enterprise.tools.upgrade.cli.argument_missing","--source/-s"));
            System.exit(1);
        }
        String sourceDir = (String)parameters.firstElement();
        if(!utils.isValidSourcePath(sourceDir)) {
            helpUsage();
            _logger.severe(sm.getString("enterprise.tools.upgrade.cli.not_valid_source_install"));
            System.exit(1);
        }
        commonInfo.setSourceInstallDir(sourceDir);
        commonInfo.enlistDomainsFromSource();
    
Methods Summary