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

ARG_clinstancefiles

public class ARG_clinstancefiles extends ArgumentHandler
author
Hans Hrasna

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

        super(pa);
        
        System.out.print(sm.getString("enterprise.tools.upgrade.cli.clinstance_input"));
        byte b[] = new byte[1024];
        try {
            int c = System.in.read(b);
            if (c == -1) { // input stream closed, maybe by ^C
                System.exit(1);
            }
            String clinstance = new String(b,0,c);
            String clinstancetrim = clinstance.trim();
            if (clinstancetrim.length() > 2) {
                StringTokenizer st = new StringTokenizer(clinstancetrim,",");
                Vector clinstanceList = new Vector();
                while(st.hasMoreTokens()) {
                    clinstanceList.add(st.nextElement());
                }
                commonInfo.processClinstnceConfFiles(clinstanceList);
            }
        }catch(Exception e) {
            _logger.log(java.util.logging.Level.SEVERE, sm.getString("enterprise.tools.upgrade.cli.unexpectedException"), e);
        }
    
Methods Summary