ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Reilly" <peter.kitt.rei...@gmail.com>
Subject Re: Any tool for ant build.xml file documentation
Date Wed, 23 Apr 2008 09:37:40 GMT
On Wed, Apr 23, 2008 at 10:31 AM, Steve Loughran <stevel@apache.org> wrote:
> 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
> namespace.
>
There was some debate about this when NameSpace awareness was added to
Ant in 1.6.*.

Peter

>
>
> >
> > <project xmlns:d="http://www.dpawson.co.uk#ns"
> >    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
> > http://www.dpawson.co.uk#ns:description
> > 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="http://www.dpawson.co.uk#ns" >
>         <echo level="debug" />
>  </presetdef>
>
>  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                  http://www.1060.org/blogxter/publish/5
>  Author: Ant in Action           http://antbook.org/
>
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>  For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message