ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <peter.rei...@corvil.com>
Subject Re: Vote: <local> for 1.6
Date Thu, 23 Oct 2003 13:05:13 GMT
On Thursday 23 October 2003 13:39, Stefan Bodewig wrote:
> On Thu, 23 Oct 2003, peter reilly <peter.reilly@corvil.com> wrote:
> > On Thursday 23 October 2003 12:31, Stefan Bodewig wrote:
> >> I haven't checked, but does you current implementation allow
> >> <local> to shadow use properties?  IMHO it shouldn't.
> >
> > It does shadow user properties. The reason is to support <macrodef>
> > attributes. It would be confusing if a macrodef attribute
> > were overridden by a user -Dx=y command line.
>
> When <attribute>s don't create locals this is no issue, is it?
>
> > However, I could change the implemenation so that <local> did not
> > shadow user properties, and macrodef attributes did.
>
> Yes.
>
> <target name="i-have-won-over-gump">
>   <local name="build.sysclasspath" value="ignore"/>
>   <javac ..../>
> </target>

The following does the same ......

  <target name="i-have-won-over-gump">
    <antcall target="j">
      <param name="build.sysclasspath" value="ignore"/>
    </antcall>
  </target>

  <target name="j">
    <echo>build.sysclasspath is ${build.sysclasspath}</echo>
  </target>

Peter
>
> would create undesirable results for a certain part of our user base
> otherwise ;-)
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org


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


Mime
View raw message