I would like to add a web facet to a custom module. At the moment I create a web.xml and copy it to the module source directory during the module creation. I was wondering whether it is possible to create a facet programmatically but I cant find any reference to how it can be done. Does anyone know where I can find an example or can someone post an example of how to create a web facet using a FacetManager.
Thanks in advance.