ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steele, Richard" <r...@steelezone.net>
Subject Re: New conditional attributes on use of macrodef?
Date Tue, 24 Dec 2013 14:27:14 GMT
I've built from HEAD and have confirmed the fix works.  Thanks!


On Sat, Dec 14, 2013 at 10:50 PM, Antoine Levy Lambert <antoine@gmx.de>wrote:

> I have fixed it too in svn head, if you want you can build ant from source
> and confirm that the problem is fixed.
>
> Regards,
>
> Antoine
> On Dec 14, 2013, at 5:39 PM, Antoine Levy Lambert wrote:
>
> > Hello Richard,
> >
> > this is a bug. I have entered it in bugzilla id 55885.
> >
> > Regards,
> >
> > Antoine
> > On Dec 9, 2013, at 9:22 AM, Steele, Richard wrote:
> >
> >> I can't seem to get the new if: and unless: attributes working on uses
> of
> >> macrodef.  For example:
> >>
> >> <project name="conditional-tests" xmlns:if="ant:if"
> >> xmlns:unless="ant:unless">
> >>
> >>   <macrodef name="sayhi">
> >>       <sequential>
> >>           <echo>hi</echo>
> >>       </sequential>
> >>   </macrodef>
> >>
> >>
> >>   <target name="hi">
> >>       <sayhi if:set="verbose" />
> >>   </target>
> >>
> >> </project>
> >>
> >> If I do "ant hi" from the command line the script runs to completion,
> and
> >> as expected, there's no output:
> >>
> >> C:\conditional-tests>ant hi
> >> Buildfile: C:\conditional-tests\build.xml
> >>
> >> hi:
> >>
> >> BUILD SUCCESSFUL
> >>
> >> However, if I set the property I get an error:
> >>
> >> C:\conditional-tests>ant hi -Dverbose=x
> >> Buildfile: C:\conditional-tests\build.xml
> >>
> >> hi:
> >>
> >> BUILD FAILED
> >> C:\Development\projects\ant-playground\conditional-tests\build.xml:11:
> >> Unknown attribute [ant:if:if:set]
> >>
> >> Thoughts?
> >>
> >> Rich
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message