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 40014] - have to enter valid input multiple times on second build file for input task
Date Tue, 11 Jul 2006 16:16:14 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=40014>.
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=40014


gudnabrsam@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |WORKSFORME




------- Additional Comments From gudnabrsam@yahoo.com  2006-07-11 16:16 -------
well, friend, I will humor you.  My interpretation of your original post is that
you have a top-level buildfile.  It uses the <ant> task to call a target from
each of two buildfiles in turn.  In these sub-buildfiles, the called target
depends on a target that collects input into a property.  The property has the
same name in each.  So I have:

build.xml:
<project>
  <ant antfile="foo.xml" target="x" />
  <ant antfile="bar.xml" target="x" />
</project>

foo.xml:
<project>
  <target name="getx">
    <input message="enter x" addproperty="x" validargs="x,y,z" />
  </target>
  <target name="x" depends="getx">
    <echo>$${x}=${x}</echo>
  </target>
</project>

bar.xml is identical to foo.xml .

When I run 'ant' I get:

Buildfile: build.xml

getx:
    [input] enter x(x,y,z)
x

x:
     [echo] ${x}=x

getx:
    [input] enter x(x,y,z)
y

x:
     [echo] ${x}=y

BUILD SUCCESSFUL
Total time: 1 second


So, by applying my interpretation of your original description, since in your
tone of entitlement you are unable to provide me what I ask for ME to help YOU
with YOUR problem, I am unable to reproduce your issue.  Reopen this if and when
you can provide an example.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message