ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 52309] New: Typedef doc: explicitely mention the need of xmlns:taglibNs on <project>
Date Fri, 09 Dec 2011 08:46:27 GMT

             Bug #: 52309
           Summary: Typedef doc: explicitely mention the need of
                    xmlns:taglibNs on <project>
           Product: Ant
           Version: 1.8.2
          Platform: PC
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Documentation
    Classification: Unclassified

The last example at shows
correctly how to use uri on taskdef but it's easy to overlook (as the ordinary
xml boilerplate) the absolutely necessary mapping of the thus created namespace
to a prefix on the project element. I therefore propose to rewrite it as

<!-- Notice the xmlns:antcontrib=<the uri from taskdef> - this is necessary to
able to use the antcontrib prefix for tasks in the lib --> 
<project xmlns:antcontrib="antlib:net.sf.antcontrib">
     <taskdef uri="antlib:net.sf.antcontrib"
     <antcontrib:if> ...  </antcontrib:if>
(I've also actually added a usage of the task to make the example complete.)

Thanks a lot!

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

View raw message