menugenerator task

What is a menu generator ?

A menu generator is supposed to generate menu. It provides some methods to write menu entries in a given menu file.

Writing your own menugenerator

To write your own menu generator you must write a java class implementing the org.apache.easyant.core.menu.MenuGenerator interface.
This interface allow you to implements the logic to generate menu entries in a menu file.

When you're own implementation is ready you'll need to register it in easyant this is done through a menu generator registry.

What is a menu generator registry ?

A menu generator registry is used to reference all the menu generator for a given context.
As explained before a menu generator is supposed to generate menu entries in one given file.
But maybe in a project we can have multiple menu files.
Let's take the example of easyant documentation, we have a root menu and we also have submenus for plugins and buildtypes.
So behind we have three different files :