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 void
execute()
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 void
init()
keyboard = new BufferedReader(new InputStreamReader(System.in));