ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19897] - Patch to implement the namespaced antlib + other changes
Date Fri, 16 May 2003 14:02:30 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19897>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19897

Patch to implement the namespaced antlib + other changes





------- Additional Comments From peter.reilly@corvil.com  2003-05-16 14:02 -------
I have updated the patch. The file adaptor.make in the tar.gz file
contains the list of new files and changed files.
This patch replaces the previous patch.

Added to the patch:

   * addConfigured(Type) method added to introspection rules
   * polymorphic type handling (using ant-type magic attribute
     or a {ant:polymorhic, type} attribute
   * get ant to ignore namespace uri it does not handle
   * get Condition, FilterChain and TokenFilter to use
     the add(Type) method
   * unit tests for above

Some bugs were fixed.

PH2 now handles three uri's:

   ant:core        - the default namespace uri. This is where the
                     current elements and attributes reside.
   ant:polymorphic - this contains one attribute "type" used to
                     substitute a type for add[Configured]Name(Class)
   antlib:<package> - this is a name space for thirdparty libraries

Other uris are ignored.
Example:

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ant="ant:core"
      xmlns:poly="ant:polymorhic"
      xmlns:antcontrib="antlib:net.sf.antcontrib"
      xmlns:acme="antlib:org.acme">
  <body>
    <h1>Ant Project embedded</h1>
    <project xmlns="ant:core">
       <target name="test">
          <antcontrib:if>
            <and>
                <available ../>
                <acme:urlready url="..."/>
            </and>
            <then>
              <copy todir="classes">
                <fileset poly:type="acme:urlfileset" ../>
              </copy>
             </then>
          </antcontrib>
       </target>
     </project>
    </body>
<html>

Mime
View raw message