That's what I was searching for, thank you. I shall try the documented
stuff. :-)


If it is a bit buried but exists it might be nice to have a reference
from the 'Developing with Ant' guide.

Hiran


On Fri, 2022-08-19 at 09:20 +0200, Stefan Bodewig wrote:
> On 2022-08-19, Hiran Chaudhuri wrote:
>
> > From other libraries I have seen there are things like property or
> > XML
> > files bundled with the tasks that can host such information - but
> > they
> > seem to be an undocumented feature?
>
> You are describing tasks bundled as an antlib. The documentation is a
> bit burried under "Concepts and Types".
>
> https://ant.apache.org/manual/Types/antlib.html
>
> What you do is to put your tasks in a jar file and add an XML file
> using
> the antlib format to it as well. If your file lives in
>
> com/example/tasks/antlib.xml
>
> inside the jar and it is on Ant's classpath then
>
> <project xmlns:my="antlib:com.example.tasks">
>
> will load your defintions and put them into the my XML namespace. If
> you
> want to avoid putting the jar in the classpath you can still use
> <typedef> as described in the last example in typedef's manual.
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
> For additional commands, e-mail: user-h...@ant.apache.org
>


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

Reply via email to