On Thursday 23 October 2003 13:39, Stefan Bodewig wrote: > On Thu, 23 Oct 2003, peter reilly <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]