File tree 19 files changed +262
-90
lines changed
main/java/org/codehaus/mojo/taglist 19 files changed +262
-90
lines changed Original file line number Diff line number Diff line change @@ -190,8 +190,6 @@ public class TagListReport extends AbstractMavenReport {
190
190
@ Parameter
191
191
private org .codehaus .mojo .taglist .options .TagListOptions tagListOptions ;
192
192
193
- private String [] tags ;
194
-
195
193
/**
196
194
* Skip generating report if no tags found in sources.
197
195
*
@@ -262,14 +260,6 @@ private void executeAnalysis() {
262
260
// Create the tag classes
263
261
List <TagClass > tagClasses = new ArrayList <>();
264
262
265
- // If any old style tags were used, then add each tag as a tag class
266
- if (tags != null && tags .length > 0 ) {
267
- getLog ().warn ("Using legacy tag format. This is not recommended." );
268
- for (String tag : tags ) {
269
- tagClasses .add (createTagClass (tag ));
270
- }
271
- }
272
-
273
263
// If the new style of tag options were used, add them
274
264
if (tagListOptions != null && !tagListOptions .getTagClasses ().isEmpty ()) {
275
265
// Scan each tag class
Original file line number Diff line number Diff line change @@ -88,24 +88,4 @@ mvn site
88
88
</reporting>
89
89
...
90
90
</project>
91
- +---+
92
-
93
- For backwards compatibility with versions prior to the 2.4 release, the legacy tags configuration is supported;
94
- however, only exact matching
95
- is used with legacy configuration.
96
-
97
- +---+
98
-
99
- <project>
100
- ...
101
- <configuration>
102
- <tags>
103
- <tag>TODO</tag>
104
- <tag>FIXME</tag>
105
- <tag>@todo</tag>
106
- <tag>@deprecated</tag>
107
- </tags>
108
- </configuration>
109
- ...
110
- </project>
111
91
+---+
Original file line number Diff line number Diff line change 35
35
<configuration >
36
36
<project implementation =" org.codehaus.mojo.taglist.stubs.BasicConfigProjectStub" />
37
37
<outputDirectory >${basedir}/target/test-classes/unit/basic-config-test/outputDirectory</outputDirectory >
38
- <tags >
39
- <tag >@colons</tag >
40
- </tags >
38
+ <tagListOptions >
39
+ <tagClasses >
40
+ <tagClass >
41
+ <displayName >@colons</displayName >
42
+ <tags >
43
+ <tag >
44
+ <matchString >@colons</matchString >
45
+ </tag >
46
+ </tags >
47
+ </tagClass >
48
+ </tagClasses >
49
+ </tagListOptions >
41
50
</configuration >
42
51
</plugin >
43
52
</plugins >
Original file line number Diff line number Diff line change 35
35
<configuration >
36
36
<project implementation =" org.codehaus.mojo.taglist.stubs.BasicConfigProjectStub" />
37
37
<outputDirectory >${basedir}/target/test-classes/unit/basic-config-test/outputDirectory</outputDirectory >
38
- <tags >
39
- <tag >@create_output</tag >
40
- </tags >
38
+ <tagListOptions >
39
+ <tagClasses >
40
+ <tagClass >
41
+ <displayName >@create_output</displayName >
42
+ <tags >
43
+ <tag >
44
+ <matchString >@create_output</matchString >
45
+ </tag >
46
+ </tags >
47
+ </tagClass >
48
+ </tagClasses >
49
+ </tagListOptions >
41
50
</configuration >
42
51
</plugin >
43
52
</plugins >
Original file line number Diff line number Diff line change 36
36
<project implementation =" org.codehaus.mojo.taglist.stubs.BasicConfigProjectStub" />
37
37
<outputDirectory >${basedir}/target/test-classes/unit/basic-config-test/outputDirectory</outputDirectory >
38
38
<emptyComments >true</emptyComments >
39
- <tags >
40
- <tag >@empty_no_colons</tag >
41
- <tag >@empty_colons</tag >
42
- </tags >
39
+ <tagListOptions >
40
+ <tagClasses >
41
+ <tagClass >
42
+ <displayName >@empty_no_colons</displayName >
43
+ <tags >
44
+ <tag >
45
+ <matchString >@empty_no_colons</matchString >
46
+ </tag >
47
+ </tags >
48
+ </tagClass >
49
+ <tagClass >
50
+ <displayName >@empty_colons</displayName >
51
+ <tags >
52
+ <tag >
53
+ <matchString >@empty_colons</matchString >
54
+ </tag >
55
+ </tags >
56
+ </tagClass >
57
+ </tagClasses >
58
+ </tagListOptions >
43
59
</configuration >
44
60
</plugin >
45
61
</plugins >
Original file line number Diff line number Diff line change 33
33
<plugin >
34
34
<artifactId >taglist-maven-plugin</artifactId >
35
35
<configuration >
36
- <project implementation =" org.codehaus.mojo.taglist.stubs.BasicConfigProjectStub" />
36
+ <project implementation =" org.codehaus.mojo.taglist.stubs.BasicConfigProjectStub" />
37
37
<outputDirectory >${basedir}/target/test-classes/unit/basic-config-test/outputDirectory-empty-comments-disabled</outputDirectory >
38
38
<skipEmptyReport >true</skipEmptyReport >
39
39
<emptyComments >false</emptyComments >
40
- <tags >
41
- <tag >@empty_comment</tag >
42
- </tags >
40
+ <tagListOptions >
41
+ <tagClasses >
42
+ <tagClass >
43
+ <displayName >@empty_comment</displayName >
44
+ <tags >
45
+ <tag >
46
+ <matchString >@empty_comment</matchString >
47
+ </tag >
48
+ </tags >
49
+ </tagClass >
50
+ </tagClasses >
51
+ </tagListOptions >
43
52
</configuration >
44
53
</plugin >
45
54
</plugins >
Original file line number Diff line number Diff line change 36
36
<project implementation =" org.codehaus.mojo.taglist.stubs.BasicConfigProjectStub" />
37
37
<outputDirectory >${basedir}/target/test-classes/unit/basic-config-test/outputDirectory</outputDirectory >
38
38
<emptyComments >true</emptyComments >
39
- <tags >
40
- <tag >@empty_comment</tag >
41
- </tags >
39
+ <tagListOptions >
40
+ <tagClasses >
41
+ <tagClass >
42
+ <displayName >@empty_comment</displayName >
43
+ <tags >
44
+ <tag >
45
+ <matchString >@empty_comment</matchString >
46
+ </tag >
47
+ </tags >
48
+ </tagClass >
49
+ </tagClasses >
50
+ </tagListOptions >
42
51
</configuration >
43
52
</plugin >
44
53
</plugins >
Original file line number Diff line number Diff line change 36
36
<project implementation =" org.codehaus.mojo.taglist.stubs.BasicConfigProjectStub" />
37
37
<outputDirectory >${basedir}/target/test-classes/unit/basic-config-test/outputDirectory</outputDirectory >
38
38
<multipleLineComments >false</multipleLineComments >
39
- <tags >
40
- <tag >@multiple_line_comment</tag >
41
- </tags >
39
+ <tagListOptions >
40
+ <tagClasses >
41
+ <tagClass >
42
+ <displayName >@multiple_line_comment</displayName >
43
+ <tags >
44
+ <tag >
45
+ <matchString >@multiple_line_comment</matchString >
46
+ </tag >
47
+ </tags >
48
+ </tagClass >
49
+ </tagClasses >
50
+ </tagListOptions >
42
51
</configuration >
43
52
</plugin >
44
53
</plugins >
Original file line number Diff line number Diff line change 36
36
<project implementation =" org.codehaus.mojo.taglist.stubs.BasicConfigProjectStub" />
37
37
<outputDirectory >${basedir}/target/test-classes/unit/basic-config-test/outputDirectory</outputDirectory >
38
38
<multipleLineComments >true</multipleLineComments >
39
- <tags >
40
- <tag >@multiple_line_comment</tag >
41
- </tags >
39
+ <tagListOptions >
40
+ <tagClasses >
41
+ <tagClass >
42
+ <displayName >@multiple_line_comment</displayName >
43
+ <tags >
44
+ <tag >
45
+ <matchString >@multiple_line_comment</matchString >
46
+ </tag >
47
+ </tags >
48
+ </tagClass >
49
+ </tagClasses >
50
+ </tagListOptions >
42
51
</configuration >
43
52
</plugin >
44
53
</plugins >
Original file line number Diff line number Diff line change 36
36
<project implementation =" org.codehaus.mojo.taglist.stubs.BasicConfigProjectStub" />
37
37
<outputDirectory >${basedir}/target/test-classes/unit/basic-config-test/outputDirectory</outputDirectory >
38
38
<showEmptyDetails >false</showEmptyDetails >
39
- <tags >
40
- <tag >@show_empty_details_tag_in_code</tag >
41
- <tag >@show_empty_details_tag_not_in_code</tag >
42
- </tags >
39
+ <tagListOptions >
40
+ <tagClasses >
41
+ <tagClass >
42
+ <displayName >@show_empty_details_tag_in_code</displayName >
43
+ <tags >
44
+ <tag >
45
+ <matchString >@show_empty_details_tag_in_code</matchString >
46
+ </tag >
47
+ </tags >
48
+ </tagClass >
49
+ <tagClass >
50
+ <displayName >@show_empty_details_tag_not_in_code</displayName >
51
+ <tags >
52
+ <tag >
53
+ <matchString >@show_empty_details_tag_not_in_code</matchString >
54
+ </tag >
55
+ </tags >
56
+ </tagClass >
57
+ </tagClasses >
58
+ </tagListOptions >
43
59
</configuration >
44
60
</plugin >
45
61
</plugins >
Original file line number Diff line number Diff line change 36
36
<project implementation =" org.codehaus.mojo.taglist.stubs.BasicConfigProjectStub" />
37
37
<outputDirectory >${basedir}/target/test-classes/unit/basic-config-test/outputDirectory</outputDirectory >
38
38
<showEmptyDetails >true</showEmptyDetails >
39
- <tags >
40
- <tag >@show_empty_details_tag_in_code</tag >
41
- <tag >@show_empty_details_tag_not_in_code</tag >
42
- </tags >
39
+ <tagListOptions >
40
+ <tagClasses >
41
+ <tagClass >
42
+ <displayName >@show_empty_details_tag_in_code</displayName >
43
+ <tags >
44
+ <tag >
45
+ <matchString >@show_empty_details_tag_in_code</matchString >
46
+ </tag >
47
+ </tags >
48
+ </tagClass >
49
+ <tagClass >
50
+ <displayName >@show_empty_details_tag_not_in_code</displayName >
51
+ <tags >
52
+ <tag >
53
+ <matchString >@show_empty_details_tag_not_in_code</matchString >
54
+ </tag >
55
+ </tags >
56
+ </tagClass >
57
+ </tagClasses >
58
+ </tagListOptions >
43
59
</configuration >
44
60
</plugin >
45
61
</plugins >
Original file line number Diff line number Diff line change 36
36
<project implementation =" org.codehaus.mojo.taglist.stubs.BasicConfigProjectStub" />
37
37
<outputDirectory >${basedir}/target/test-classes/unit/basic-config-test/outputDirectory</outputDirectory >
38
38
<showEmptyDetails >false</showEmptyDetails >
39
- <tags >
40
- <tag >@create_output</tag >
41
- </tags >
39
+ <tagListOptions >
40
+ <tagClasses >
41
+ <tagClass >
42
+ <displayName >@create_output</displayName >
43
+ <tags >
44
+ <tag >
45
+ <matchString >@create_output</matchString >
46
+ </tag >
47
+ </tags >
48
+ </tagClass >
49
+ </tagClasses >
50
+ </tagListOptions >
42
51
</configuration >
43
52
</plugin >
44
53
</plugins >
Original file line number Diff line number Diff line change 33
33
<plugin >
34
34
<artifactId >taglist-maven-plugin</artifactId >
35
35
<configuration >
36
- <project implementation =" org.codehaus.mojo.taglist.stubs.CountingTagsProjectStub" />
36
+ <project implementation =" org.codehaus.mojo.taglist.stubs.CountingTagsProjectStub" />
37
37
<outputDirectory >${basedir}/target/test-classes/unit/counting-tags-test/outputDirectory</outputDirectory >
38
- <tags >
39
- <tag >TODO</tag >
40
- <tag >< todo</tag >
41
- <tag >FIXME</tag >
42
- <tag >DOCUMENT_ME</tag >
43
- <tag >NOT_YET_DOCUMENTED</tag >
44
- </tags >
38
+ <tagListOptions >
39
+ <tagClasses >
40
+ <tagClass >
41
+ <displayName >TODO</displayName >
42
+ <tags >
43
+ <tag >
44
+ <matchString >TODO</matchString >
45
+ </tag >
46
+ </tags >
47
+ </tagClass >
48
+ <tagClass >>
49
+ <displayName >< todo</displayName >
50
+ <tags >
51
+ <tag >
52
+ <matchString >< todo</matchString >
53
+ </tag >
54
+ </tags >
55
+ </tagClass >
56
+ <tagClass >
57
+ <displayName >FIXME</displayName >
58
+ <tags >
59
+ <tag >
60
+ <matchString >FIXME</matchString >
61
+ </tag >
62
+ </tags >
63
+ </tagClass >
64
+ <tagClass >
65
+ <displayName >DOCUMENT_ME</displayName >
66
+ <tags >
67
+ <tag >
68
+ <matchString >DOCUMENT_ME</matchString >
69
+ </tag >
70
+ </tags >
71
+ </tagClass >
72
+ <tagClass >
73
+ <displayName >NOT_YET_DOCUMENTED</displayName >
74
+ <tags >
75
+ <tag >
76
+ <matchString >NOT_YET_DOCUMENTED</matchString >
77
+ </tag >
78
+ </tags >
79
+ </tagClass >
80
+ </tagClasses >
81
+ </tagListOptions >
45
82
</configuration >
46
83
</plugin >
47
84
</plugins >
Original file line number Diff line number Diff line change 35
35
<configuration >
36
36
<project implementation =" org.codehaus.mojo.taglist.stubs.TagsProjectStub" />
37
37
<outputDirectory >${basedir}/target/test-classes/unit/tag-test/outputDirectory</outputDirectory >
38
- <tags >
39
- <tag >c_style_tag</tag >
40
- </tags >
38
+ <tagListOptions >
39
+ <tagClasses >
40
+ <tagClass >
41
+ <displayName >c_style_tag</displayName >
42
+ <tags >
43
+ <tag >
44
+ <matchString >c_style_tag</matchString >
45
+ </tag >
46
+ </tags >
47
+ </tagClass >
48
+ </tagClasses >
49
+ </tagListOptions >
41
50
</configuration >
42
51
</plugin >
43
52
</plugins >
You can’t perform that action at this time.
0 commit comments