Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Ant and XML namespace
Ant and XML namespace [message #226394] Thu, 23 March 2006 19:09 Go to next message
Laszlo Benedek is currently offline Laszlo BenedekFriend
Messages: 25
Registered: July 2009
Junior Member
Is the Eclipse implementation of Ant, XML namespace aware ?
Re: Ant and XML namespace [message #226400 is a reply to message #226394] Thu, 23 March 2006 19:21 Go to previous messageGo to next message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
Eclipse has no Ant implementation...we use the standard Apache Ant
distribution (out of the box 1.6.5)

That said, Apache Ant does have namespace support. See:
http://ant.apache.org/manual/CoreTypes/namespace.html

HTH
Darins

"Laszlo Benedek" <lbenedek@ca.ibm.com> wrote in message
news:dvurq2$8eq$1@utils.eclipse.org...
> Is the Eclipse implementation of Ant, XML namespace aware ?
Re: Ant and XML namespace [message #226472 is a reply to message #226400] Fri, 24 March 2006 14:57 Go to previous messageGo to next message
Laszlo Benedek is currently offline Laszlo BenedekFriend
Messages: 25
Registered: July 2009
Junior Member
Agree with that, although the Eclipse Ant has it's own specifics.
For instance, the extension point org.eclipse.ant.core.antTasks has no
URI attribute, whereas the <typedef> task has.

In the following example, I have created a task "input" through the
antTask extension point. But even though I defined "my" namespace, I'm
still having a name collision.

<?xml version="1.0" encoding="UTF-8"?>
<project name="Test" default="default" xmlns:my="org.example">
<target name="default">
<my:input value="a value"/>
<input message="a massage"/>
</target>
</project>


Darin Swanson wrote:
> Eclipse has no Ant implementation...we use the standard Apache Ant
> distribution (out of the box 1.6.5)
>
> That said, Apache Ant does have namespace support. See:
> http://ant.apache.org/manual/CoreTypes/namespace.html
>
> HTH
> Darins
>
> "Laszlo Benedek" <lbenedek@ca.ibm.com> wrote in message
> news:dvurq2$8eq$1@utils.eclipse.org...
>> Is the Eclipse implementation of Ant, XML namespace aware ?
>
>
Re: Ant and XML namespace [message #226485 is a reply to message #226472] Fri, 24 March 2006 18:40 Go to previous message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
Good point...I had not thought of that and no one else has complained :-)

The Ant extension points were created before the namespace additions and
have not been upgraded.
I have logged
https://bugs.eclipse.org/bugs/show_bug.cgi?id=133190

Thanks
Darins

"Laszlo Benedek" <lbenedek@ca.ibm.com> wrote in message
news:e011c5$b7q$1@utils.eclipse.org...
> Agree with that, although the Eclipse Ant has it's own specifics.
> For instance, the extension point org.eclipse.ant.core.antTasks has no
> URI attribute, whereas the <typedef> task has.
>
> In the following example, I have created a task "input" through the
> antTask extension point. But even though I defined "my" namespace, I'm
> still having a name collision.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <project name="Test" default="default" xmlns:my="org.example">
> <target name="default">
> <my:input value="a value"/>
> <input message="a massage"/>
> </target>
> </project>
>
>
> Darin Swanson wrote:
> > Eclipse has no Ant implementation...we use the standard Apache Ant
> > distribution (out of the box 1.6.5)
> >
> > That said, Apache Ant does have namespace support. See:
> > http://ant.apache.org/manual/CoreTypes/namespace.html
> >
> > HTH
> > Darins
> >
> > "Laszlo Benedek" <lbenedek@ca.ibm.com> wrote in message
> > news:dvurq2$8eq$1@utils.eclipse.org...
> >> Is the Eclipse implementation of Ant, XML namespace aware ?
> >
> >
Previous Topic:Creating a class, displaying it in the editor
Next Topic:Questions about jdt-apt in 3.2M5
Goto Forum:
  


Current Time: Tue Apr 23 01:38:59 GMT 2024

Powered by FUDForum. Page generated in 0.03813 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top