[
http://jira.codehaus.org/browse/MTAGLIST-15?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nate Stoddard updated MTAGLIST-15:
----------------------------------
Attachment: MTAGLIST-15_PREVIEW.patch
I have attached a patch that supports grouping tags into classes. It also
supports ignoring case and using regular expressions in tags. Please
experiment with this patch, and let me know if there are any issues. I am very
interested in someone performing tests in a non-English locale to test the
ignore case feature.
In your pom.xml, you can see use the legacy "tags" list configuration; however,
to utilize the new features here is an example:
<configuration>
<tagListOptions>
<tagClasses>
<tagClass>
<displayName>Test IgnoreCase
Matches</displayName>
<tags>
<tag>
<matchString>todo</matchString>
<matchType>ignoreCase</matchType>
</tag>
<tag>
<matchString>fixme</matchString>
<matchType>ignoreCase</matchType>
</tag>
</tags>
</tagClass>
<tagClass>
<displayName>Test RegEx Matches</displayName>
<tags>
<tag>
<matchString>TR[a-zA-Z]+M</matchString>
<matchType>regEx</matchType>
</tag>
</tags>
</tagClass>
</tagClasses>
</tagListOptions>
</configuration>
You can group any tag type into any class. The following tag types are
supported:
exact - an exact match of the tag string
ignoreCase - match the string but ignore the case.
regEx - use a regular expression to match the tag.
I will be updating documentation and unit tests. Once these tasks are
complete, and there doesn't appear to be any remaining issues, I'll upload a
final patch that can be pushed to VC.
Thanks,
-Nate
> either support ignoring of casing for tags or implement tag-classes (clusters)
> ------------------------------------------------------------------------------
>
> Key: MTAGLIST-15
> URL: http://jira.codehaus.org/browse/MTAGLIST-15
> Project: Maven 2.x Taglist Plugin
> Issue Type: New Feature
> Reporter: Roman Cerny
> Attachments: MTAGLIST-15_PREVIEW.patch, Tag_Class_Example.jpg
>
>
> it would be nice, if one could configure the taglist-maven-plugin, that
> casing (of tags) can be ignored.
> * TODO, todo, Todo, (and several casing variations) would be shown in the
> same list.
> * same for @TODO and @todo
> it would be even nicer, to specify classes of tags (that should be clustered
> to the same category).
> something like:
> <tagclasses>
> <tagclass name="todo" ignorecasing="true">
> <tag>TODO</tag>
> <tag>@todo</tag>
> </tagclass>
> <tagclass name="fixme" ignorecasing="true">
> <tag>FIXME</tag>
> <tag>FIX</tag>
> </tagclass>
> <tag>@deprecated</tag>
> </tagclasses>
> </configuration>
> since i didn't know which JIRA is the correct one, i posted this feature
> request in both i found:
> also see: http://jira.codehaus.org/browse/MOJO-831
--
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 from this list, please visit:
http://xircles.codehaus.org/manage_email