Skip to content

Commit 4679937

Browse files
committed
prefect:transform 中不处理 jar 中的非 class 文件不影响
1 parent 7fe70ff commit 4679937

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib_bcu_plugin/src/main/java/com/ysj/lib/bytecodeutil/plugin/TransformTask.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ abstract class TransformTask : DefaultTask() {
186186
worker.submit {
187187
JarFile(file).use { jf ->
188188
jf.entries().iterator().forEach entry@{ entry ->
189-
if (entry.isDirectory || entry.name.startsWith("META-INF") || entry.name == "module-info.class") {
189+
if (!entry.name.endsWith(".class") || entry.name.endsWith("module-info.class")) {
190190
return@entry
191191
}
192192
val entryFile = File(notNeedOutputDir, "${entry.name}-crc${entry.crc.toString(16)}")

0 commit comments

Comments
 (0)