ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55885] New: if:set attribute failing on macrodef invocation
Date Sat, 14 Dec 2013 22:38:52 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=55885

            Bug ID: 55885
           Summary: if:set attribute failing on macrodef invocation
           Product: Ant
           Version: 1.9.1
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
          Assignee: notifications@ant.apache.org
          Reporter: antoine@apache.org

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

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message