ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <>
Subject Re: Any tool for ant build.xml file documentation
Date Wed, 23 Apr 2008 09:31:31 GMT
Dave Pawson wrote:

> It would help if ant were namespace aware, then additional documentation
> could be added in another namespace.

Ant is namespace aware, it merely chooses not to ignore content in other 
namespaces, as it assumes they are tasks declared into a different 

> <project xmlns:d=""
>     name="generate"
>     basedir="/sgml/site2/pawson/"
>     default="help">
> <d:description>Main variable set</d:description>
> Error reported:
> build.xml:16: Problem: failed to create task or type
> Cause: The name is undefined.
> That would be a very helpful feature for larger build files.
Consider this, then, my gift to you:

<presetdef name="description" uri="" >
	<echo level="debug" />

you now get a description
<d:description>Main variable set</d:description>

which gets printed when you run
ant -debug

[description] Main variable set

Steve Loughran        
Author: Ant in Action 

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

View raw message