XML Schema (XSD) for Ant

J

jflassonde

My first question was: Where is the XSD for ant?

The answer is: There is none.
http://groups.google.com/group/comp...=schema+for+ant&rnum=1&hl=en#72dd6e01877e3cce

"Ant doesn't have DTD's or XML Schemas essentially because the rules
for a valid Ant build file can change so easily."

I don't understand the reasoning behind it. Isn't that what the any and
anyAttribute elements are for? To extend.

The other solution I see is to write my own XSD for all ant tasks, put
them in a group and incorporate <group ref="AntTasks"/> into my own
customized definition of the <target> element.

In a sense, I would be merging the "ant namespace" and all its tasks
definitions into our own namespace. It seems weird to do, but:

1. There is no ant namespace anyway.
2. There is no XML Schema Definitions for ant tasks.
3. It would be in a separate file, prevent coupling with our project.
4. I will just be defining the tasks in that file.

That way we can use our own customized tasks under <target> and also
the default ant tasks. The downside is that we absolutely have to
define all the tasks that we'll use.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,809
Latest member
moe77

Latest Threads

Top