FileDocCategorySizeDatePackage
SunONEInput.javaAPI DocGlassfish v2 API3502Fri May 04 22:32:42 BST 2007org.apache.tools.ant.taskdefs.optional.sun.appserv

SunONEInput

public class SunONEInput extends org.apache.tools.ant.Task
SunONEInput is used to get Inputs from the Users. Inspired by Ant 1.5 input task. This task is very useful to get inputs from the users. This will get deprecated when we move to Ant 1.5

Fields Summary
private String
msg
private String
value
private String
addproperty
private BufferedReader
keyboard
LocalStringsManager
lsm
Constructors Summary
Methods Summary
public voidexecute()


	    try{

            System.out.println( msg);
	    value  = keyboard.readLine();
	    }
	    catch ( IOException ioe )
	    {
               System.out.println(lsm.getString("IOExceptionMsg", new Object[] {msg})); 
	    }
            if (addproperty != null) {
              project.setProperty(addproperty, value);
            }
         
public voidinit()


	    
	 
	     keyboard = new BufferedReader(new InputStreamReader(System.in));
	 
public voidsetAddproperty(java.lang.String addproperty)

        this.addproperty = addproperty;
    
public voidsetMessage(java.lang.String msg)

             this.msg = msg;