Skip to content

Commit 1b46ead

Browse files
committed
Exclude certain standard library classes from docgen type exclusion
This will allow the log4j-docgen-maven-plugin to generate xsd schema attributes for plugin fields with a type of Class, InetAddress, URL, Charset or Pattern.
1 parent b23e9a5 commit 1b46ead

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@
366366
`log4j-docgen`-specific properties
367367
================================== -->
368368
<!-- `log4j-docgen` qualified class name exclude pattern -->
369-
<log4j.docgen.typeFilter.excludePattern>^java\..+</log4j.docgen.typeFilter.excludePattern>
369+
<log4j.docgen.typeFilter.excludePattern>^java\.(?!lang\.Class|net\.InetAddress|net\.URL|nio\.charset\.Charset|util\.regex\.Pattern).+</log4j.docgen.typeFilter.excludePattern>
370370
<!-- Directories where `log4j-docgen` annotation processor will emit files to -->
371371
<log4j.docgen.pluginDescriptorsDir.phase1>${maven.multiModuleProjectDirectory}/target/plugin-descriptors/phase1</log4j.docgen.pluginDescriptorsDir.phase1>
372372
<log4j.docgen.pluginDescriptorsDir.phase2>${maven.multiModuleProjectDirectory}/target/plugin-descriptors/phase2</log4j.docgen.pluginDescriptorsDir.phase2>

0 commit comments

Comments
 (0)