[ http://jira.codehaus.org/browse/MPPLUGIN-21?page=comments#action_47255 ]
Carlos Sanchez commented on MPPLUGIN-21: ---------------------------------------- This patch hasn't been tested enough. If somebody has some time to spend working on it... > Autogenerate plugin.properties and properties documentation > ----------------------------------------------------------- > > Key: MPPLUGIN-21 > URL: http://jira.codehaus.org/browse/MPPLUGIN-21 > Project: maven-plugin-plugin > Type: New Feature > Reporter: Carlos Sanchez > Priority: Minor > Attachments: patch.TXT > > > As sent to the developer list this is a suggestion of how to create and > document plugin properties easier. > - Create an xml file called plugin-properties.xml > In the plugin project: > - Process it to generate the properties.xml xdoc using > <report>maven-plugin-plugin</report> > - Process it to generate the plugin.properties file (goal > plugin:generate-properties), maybe in the future there will be support for > reading properties directly from it. > Just one issue, I wasn't able to add a newline character in a jsl file: > <jsl:template match="property"> > <j:set var="name"><x:expr select="@name"/></j:set> > <j:set var="default"><x:expr select="@default"/></j:set> > ${name}=${default}<!-- Here there should be a newline --> > </jsl:template> > Examples: > The base file > http://maven.apache.org/reference/plugins/aspectj/plugin-properties.xml > The generated documentation > http://maven.apache.org/reference/plugins/aspectj/properties.html > The DTD > http://maven.apache.org/reference/plugins/aspectj/plugin_properties_1_0.dtd -- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
