correction bug
This commit is contained in:
parent
2b82ea4026
commit
6ed516c287
@ -407,6 +407,31 @@ public class BakefileParser {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String depStr = targetMatcher.group(2);
|
String depStr = targetMatcher.group(2);
|
||||||
|
|
||||||
|
// Vérifier si la chaîne de dépendances se termine par un backslash (continuation)
|
||||||
|
if (depStr.trim().endsWith("\\")) {
|
||||||
|
StringBuilder fullDeps = new StringBuilder(depStr.substring(0, depStr.trim().length() - 1).trim());
|
||||||
|
int j = i + 1;
|
||||||
|
|
||||||
|
while (j < lines.size()) {
|
||||||
|
String nextLine = lines.get(j).trim();
|
||||||
|
|
||||||
|
if (nextLine.endsWith("\\")) {
|
||||||
|
fullDeps.append(" ").append(nextLine.substring(0, nextLine.length() - 1).trim());
|
||||||
|
j++;
|
||||||
|
} else {
|
||||||
|
fullDeps.append(" ").append(nextLine);
|
||||||
|
i = j; // Mettre à jour l'indice principal pour sauter les lignes traitées
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
depStr = fullDeps.toString();
|
||||||
|
if (BakeCLI.isDebug()) {
|
||||||
|
System.out.println("Debug: Combined dependency line: [" + depStr + "]");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dependencies = splitDependencies(depStr);
|
dependencies = splitDependencies(depStr);
|
||||||
commands = new ArrayList<>();
|
commands = new ArrayList<>();
|
||||||
displayCommands = new ArrayList<>();
|
displayCommands = new ArrayList<>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user