diff --git a/Tools/Java/Source/MigrationTools/org/tianocore/migration/ModuleReader.java b/Tools/Java/Source/MigrationTools/org/tianocore/migration/ModuleReader.java index 0f1df7b593..05620ca5ab 100644 --- a/Tools/Java/Source/MigrationTools/org/tianocore/migration/ModuleReader.java +++ b/Tools/Java/Source/MigrationTools/org/tianocore/migration/ModuleReader.java @@ -329,7 +329,9 @@ public final class ModuleReader implements Common.ForDoAll { //-----------------------------------ForDoAll-----------------------------------// public void run(String filepath) throws Exception { String name = mi.temppath + File.separator + filepath.replace(mi.temppath + File.separator, ""); - commentlaplace.transform(name, name); + if (commentlaplace.recognize(name)) { + commentlaplace.transform(name, name); + } } public boolean filter(File dir) {