We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
DcmToolTests.isAgentJar
RC
1 parent 80d0558 commit c1b082aCopy full SHA for c1b082a
tool/src/test/java/com/alibaba/dcm/tool/DcmToolTests.kt
@@ -93,7 +93,9 @@ class DcmToolTests : AnnotationSpec() {
93
val fileName: String = file.name
94
if (!fileName.startsWith("dns-cache-manipulator-")) return false
95
96
- return !fileName.trimToVersion().removeSuffix("-SNAPSHOT").contains("-")
+ val version = fileName.trimToVersion()
97
+
98
+ return !(version.endsWith("-javadoc") || version.endsWith("-sources"))
99
}
100
101
private fun String.trimToVersion() = substringAfterLast('/')
0 commit comments