FileDocCategorySizeDatePackage
DASLauncher.javaAPI DocGlassfish v2 API3846Fri May 04 22:24:30 BST 2007com.sun.enterprise.admin.servermgmt.launch

DASLauncher

public class DASLauncher extends Object

Fields Summary
private ASLauncher
asLauncher
private DASLauncherInfo
info
private String[]
args
Constructors Summary
public DASLauncher(DASLauncherInfo Info)

        info = Info;
        info.validate();
    
public DASLauncher(String Args)

        info = new DASLauncherInfo(Args);
        info.validate();
    
Methods Summary
public intlaunch()

        setArgs();
        info.setSystemProps();
        asLauncher = new ASLauncher();
        asLauncher.process(args);
        return asLauncher._returnValue;
    
public static voidmain(java.lang.String[] args)

        try
        {
            DASLauncher dasLauncher = new DASLauncher(args);
            System.exit(dasLauncher.launch());
        }
        catch(Exception e)
        {
            e.printStackTrace();
        }
    
private voidsetArgs()

        ArrayList<String> argsList = new ArrayList<String>();
        
        argsList.add("start");

        if(info.verbose)
            argsList.add("verbose");
        
        if(info.debug)
            argsList.add("debug");
        
        args = argsList.toArray(new String[argsList.size()]);