ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27533] New: - input task behaviour when validargs and defaultvalue specified
Date Tue, 09 Mar 2004 05:26:16 GMT
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: dev@ant.apache.org
        ReportedBy: ben@burbong.com


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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message