Amélioration de la gestion des dépendances circulaires

This commit is contained in:
2025-02-04 19:27:56 +01:00
parent 0af4eb8f1b
commit 0941b5e09e
19 changed files with 125 additions and 36 deletions

View File

@@ -15,11 +15,14 @@ public class CommandExecutor {
return;
}
if (!rule.needsUpdate()){
System.out.println("bake: '" + rule.getName() + "' is up to date.");
if (!rule.needsUpdate()) {
if (rule.getName().equals(BakefileParser.getFirstTarget())) {
System.out.println("bake: '" + rule.getName() + "' is up to date.");
}
return;
}
try {
for (String command : rule.getCommands()) {
System.out.println(command); // Affichage de la commande executée