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 31779] New: - Problem with <input> task
Date Tue, 19 Oct 2004 15:01:59 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=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: dev@ant.apache.org
        ReportedBy: rhino1@sympatico.ca


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


Mime
View raw message