[ http://jira.codehaus.org/browse/MWAR-124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_109884 ]
Stephane Nicoll commented on MWAR-124: -------------------------------------- sounds good. Do you mind providing a usage of this so that I can at least add tests? It would even be better if you write a couple of tests for your patch. > accept packaging task passed by other plugin via the plugin context > ------------------------------------------------------------------- > > Key: MWAR-124 > URL: http://jira.codehaus.org/browse/MWAR-124 > Project: Maven 2.x War Plugin > Issue Type: Improvement > Reporter: nicolas de loof > Assignee: Stephane Nicoll > Priority: Trivial > Attachments: war-plugin-external-packaging-tasks.patch > > > In maven 2.0.x there is no phase beetween creating the exploded artifact to > be packaged and packaging as an archive. my javascript plugins needs to > assemble source files into the webapp root /scripts directory. The only way > today is to run during the test phase, to ensure runing prior the war plugin. > The WarPackagingTask is an abstration that could allow other plugins to > register some tasks to perform during the exploded webapp creation. As the > pluginContext is desinged to help plugins share datas, it can be used to pass > custom packaginTask (and postPackagin ones) to the war plugin from another > plugin. > The attached patch adds two constants to define suchentries in the context > and teh required code to get them and add the to the packaging and > post-packaging tasks lists. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira