ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <>
Subject Re: Policies/Suggestions on adding attributes...
Date Thu, 21 Feb 2002 20:35:25 GMT
----- Original Message -----
From: "Michael J McGonagle" <>
> Basically, I want to know if it is "legal" (ie; does Ant just ignore the
> unused attributes) to do the following:
> <project name="myproject" author="authorname" default="usage">
> ...
> </project>

Nope, not legal and won't work.  But trial-and-error would show this easily.

> I had started to design my own datafile for my project, but it really
> came out very similar to an Ant build.xml (or at least  a subset of a
> build.xml), so rather than create a new file format, I just want to work
> with the Ant file directly. Being able to add arbitrary attributes would
> be nice, but it would work just as well to have all of the properties
> used by my program put into a target that Ant never executes, this way
> it shouldn't really interfear with Ant's operation.

You could use that properties mechanism, sure.  Or a .properties file that
hold your metadata. Or create an Ant build.xml superset and XSLT your
build.xml files dynamically from an XML file that has all your metadata in
it too.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message