Re: Bundling Ant Tasks
Hiran Chaudhuri <[email protected]> Mon, 22 Aug 2022 22:56:55 +0200
| Newsgroups | gmane.comp.jakarta.ant.user |
|---|---|
| Message-ID | <[email protected]> |
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=3D"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: [email protected] > For additional commands, e-mail: [email protected] >