ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geoff Meakin" <geo...@isocra.com>
Subject RE: The old immutable properties trick
Date Fri, 10 May 2002 09:36:07 GMT
try the following: of course I dont know whether this is what you want, cos
Ive never heard of the 99 bottles of beer program, but it seems to me that
if
your calling a target with parameter properties, but your asking it to not
inherit any properties, then it probably wont.

<project name="dummy" basedir="." default="test">

  <target name="test">
    <property name="p" value="ppp"/>
    <echo>p=${p}</echo>
    <antcall target="test2" inheritAll="false">
      <param name="p" value="aaa"/>
    </antcall>
  </target>

  <target name="test2">
    <echo>p=${p}</echo>
    <antcall target="test3" inheritAll="true">
      <param name="p" value="bbb"/>
    </antcall>
  </target>

  <target name="test3">
    <echo>p=${p}</echo>
  </target>

</project>

-Geoff

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message