File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
matrix/matrix-android/matrix-gradle-plugin/src/main/kotlin/com/tencent/matrix/plugin/trace Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -292,9 +292,17 @@ class MatrixTrace(
292292
293293 if (isIncremental) {
294294 val outChangedFiles = HashMap <File , Status >()
295+
295296 for ((changedFileInput, status) in mapOfChangedFiles) {
296297 val changedFileInputFullPath = changedFileInput.absolutePath
298+
299+ // mapOfChangedFiles is contains all. each collectDirectoryInputTask should handle itself, should not handle other file
300+ if (! changedFileInputFullPath.contains(inputFullPath)) {
301+ continue
302+ }
303+
297304 val changedFileOutput = File (changedFileInputFullPath.replace(inputFullPath, outputFullPath))
305+
298306 if (status == Status .ADDED || status == Status .CHANGED ) {
299307 resultOfDirInputToOut[changedFileInput] = changedFileOutput
300308 } else if (status == Status .REMOVED ) {
You can’t perform that action at this time.
0 commit comments