Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2005

Tip: Looking for answers? Try searching our database.

Schema for build.xml in Ant: Is there one?

Thread view: 
Ion Chalmers Freeman - 02 Oct 2004 01:18 GMT
I'm trying to use Ant, and I don't see a schema for build.xml. Is it
defined anywhere?
Thanks!
ion
Tor Iver Wilhelmsen - 02 Oct 2004 09:15 GMT
> I'm trying to use Ant, and I don't see a schema for build.xml. Is it
> defined anywhere?

No.

To quote
http://phd.netcomp.monash.edu.au/RobertMarkBram/notes/ant/tutorial/default.asp:

 "Ant build files must be well formed XML documents. However, there
 are no formal DTD's or XML Schemas for Ant build files. Ant doesn't
 have DTD's or XML Schemas essentially because the rules for a valid
 Ant build file can change so easily. For example, Ant allows you to
 create your own types of XML elements and use them in your build
 files - which would immediately make your build file invalid
 according to the 'standard' DTD or XML Schema."

So the reason is that ant is a collection of custom rules, with ant
tasks (new tags) "plugged in" as needed. It would be hell if every
task was another namespace, which would be the consequence of
requiring a schema or DTD.
Dave Glasser - 02 Oct 2004 15:34 GMT
ionFreeman@gmail.com (Ion Chalmers Freeman) wrote on 1 Oct 2004
17:18:34 -0700 in comp.lang.java.programmer:

>I'm trying to use Ant, and I don't see a schema for build.xml. Is it
>defined anywhere?

You can generate a DTD for a build.xml file with the antstructure
task:

 <target name="dtd">
     <antstructure output="project.dtd"/>
 </target>

Signature

Check out QueryForm, a free, open source, Java/Swing-based
front end for relational databases.

http://qform.sourceforge.net

If you're a musician, check out RPitch Relative Pitch
Ear Training Software.

http://rpitch.sourceforge.net

ion - 07 Jan 2005 16:44 GMT
Well, that's ... interesting. Thanks!


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.