Résolution de bug - TEST JAVA -> 01

This commit is contained in:
2025-02-06 20:49:12 +01:00
parent 2a6599c5ae
commit 53ea20ea69
3 changed files with 19 additions and 3 deletions

View File

@@ -113,8 +113,10 @@ public class Rule {
if (BakeCLI.isDebug()) {
System.out.println("Debug : Dependency '" + dependency + "' last modified at " + TimestampManager.formatTimestamp(depTimestamp));
}
if (!depFile.exists() && !dependency.isEmpty()) {
boolean hasRule = BakeEngine.hasRule(dependency);
if (!depFile.exists() && !dependency.isEmpty() && !hasRule) {
System.out.println("bake: *** No rule to make target '" + dependency + "', needed by '" + name + "'. Stop.");
System.exit(1);
}