You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Steve Loughran <st...@iseran.com> on 2003/10/04 07:15:41 UTC
Antlib use q.
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
Re: Antlib use q.
Posted by peter reilly <pe...@corvil.com>.
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
Re: Antlib use q.
Posted by peter reilly <pe...@corvil.com>.
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