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=31779>.
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=31779

Problem with <input> task

           Summary: Problem with <input> task
           Product: Ant
           Version: 1.6.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I've noticed that the <input> tasks includes the value of the validargs 
argument in the prompt string that it produces at execution time. This 
shouldn't be happening in my view.

For example, given this task:

<input message="Which server should receive the files? 1. Foo   2. Bar   3. 
Test" 
        validargs="1,2,3"
        addproperty="server.choice" 
        defaultvalue="2"/>

I would expect the prompt seen at execution time to be: 

Which server should receive the files? 1. Foo  2. Bar  3. Test

but I'm getting:

Which server should receive the files? 1. Foo  2. Bar  3. Test(1,2,3)

In other words, the values in the 'validargs' parameter are appended to the 
prompt. 

Since this is potentially confusing and esthetically displeasing, I'd like to 
see the code reworked so that the validargs values do not appear in the input 
prompt.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to