DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=27533>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=27533 input task behaviour when validargs and defaultvalue specified Summary: input task behaviour when validargs and defaultvalue specified Product: Ant Version: 1.6.1 Platform: PC OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I want input to only accept a set of valid strings (eg. product names), but if return is pressed, to default to a given value (eg. the primary product). Currently, I can only do this by placing an "empty" choice in validargs. This makes for a messy prompt Eg. <input message="Enter product to build:" addproperty="build.product" validargs="productA,productB,productC," defaultvalue="productA" /> ... [input] Enter product to build:(productA,productB,productC,) Can the input task be changed to allow a default value when both validargs and defaultvalue attributes have been specified, without the need for the "empty" choice in validargs? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]