ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <peter.rei...@corvil.com>
Subject Re: Antlib use q.
Date Mon, 06 Oct 2003 08:13:48 GMT
Opps,

The xmlns:axis NS mapping is not needed in the type def. It is needed
when the NS uri is used.

       <typedef uri="antlib:org.apache.axis"
                classpathref="axis.classpath"
                resource="org/apache/axis/antlib.xml"/>

   <axis:task xmlns:axis="antlib:org.apache.axis">
   </axis:task>

The NS prefix -> uri mapping may be of course be in any enclosing element.

Peter

On Monday 06 October 2003 09:04, peter reilly wrote:
> You need to add the resource attribute:
>       <typedef uri="antlib:org.apache.axis"
>                classpathref="axis.classpath"
>                resource="org/apache/axis/antlib.xml"
>                xmlns:axis="antlib:org.apache.axis" />
>
> Peter
>
> On Saturday 04 October 2003 06:15, Steve Loughran wrote:
> > I am writing an antlib entry for axis; trying to understand the concept
> > to use properly myself. Here is my q.
> >
> >
> > I can declare stuff in the axis namespace automagically with
> > <project name="foo" xmlns:axis="antlib:org.apache.axis">
> >
> > provided axis.xml and needed jars are on the path.
> >
> > But how do i use namespaces and <typedefs>
> >
> > What is the syntax to say, roughly
> >
> >      <typedef uri="antlib:org.apache.axis" classpathref="axis.classpath"
> >          xmlns:axis="antlib:org.apache.axis" />
> >
> >
> > so that I can load stuff from my own path, and then go  <axis:admin ...
> > >?
> >
> > -Steve.
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> > For additional commands, e-mail: dev-help@ant.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message