ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Burgess, Benjamin" <>
Subject RE: visibility of the variable/parameter
Date Wed, 21 Feb 2007 16:14:36 GMT
Antcall is a task that is used to call a sub project.  In other words,
what is called using Antcall is a sub process in its own scope and
properties set in that scope do not come back to the calling scope.  You
should see a massive increase in memory as well with ancall as it is
creating a whole new Ant Project in memory.

I think what you should do is:

  <target name="X" depends="callY" />


-----Original Message-----
From: Dharmesh Vyas [] 
Sent: Wednesday, February 21, 2007 10:58 AM
To: Ant Users List
Subject: visibility of the variable/parameter

Hello Group,

Shown below is the small illustration of something which I am trying to
implement. I am not sure, where/what I am missing.

  <target name="all" depends="X,Y">

  <target name="X">
    <antcall target="callY"/>

  <target name="callY">
    <condition property="view">
      <equals arg1="0" arg2="0" />
    <echo>value of view is ${view}</echo>   ---> Which shows as true

  <target name="Y">
    <echo>value of view is ${view}</echo> -----> value of view is not
      <equals arg1="${view}" arg2="view"/>
          <echo message="view is set"/>
          {I want to perform something over here}
          <echo message="view is not set"/>

(1) I am not understanding that when target 'Y' is called, why the value
view is not visible?? (Is it local to only taget callY)
(2) How shall I implement it so that, I get the value of view in Y. ( I
to call target Y only from all and not other target)

Please forgive me if this is a stupid question but finally after trying
and there i thought of asking.

Thanks in advance,
- Dharmesh Vyas.

This message, including any attachments, contains confidential information intended for a
specific individual and purpose, and is protected by law.  If you are not the intended recipient,
please contact sender immediately by reply e-mail and destroy all copies.  You are hereby
notified that any disclosure, copying, or distribution of this message, or the taking of any
action based on it, is strictly prohibited.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message