Ajout de la gestion des timestamps pour les fichiers cibles et dépendances, avec des messages de débogage pour faciliter le suivi des modifications.
This commit is contained in:
@@ -101,9 +101,18 @@ public class Rule {
|
||||
System.out.println("Debug : Checking if target file " + name + " exist and is up to date");
|
||||
}
|
||||
long targetTimestamp = targetFile.exists() ? TimestampManager.getTimestamp(targetFile) : 0;
|
||||
|
||||
if (BakeCLI.isDebug()) {
|
||||
System.out.println("Debug : Target file '" + name + "' last modified at " + TimestampManager.formatTimestamp(targetTimestamp));
|
||||
}
|
||||
|
||||
for (String dependency : dependencies) {
|
||||
File depFile = new File(dependency);
|
||||
long depTimestamp = depFile.exists() ? TimestampManager.getTimestamp(depFile) : 0;
|
||||
|
||||
if (BakeCLI.isDebug()) {
|
||||
System.out.println("Debug : Dependency '" + dependency + "' last modified at " + TimestampManager.formatTimestamp(depTimestamp));
|
||||
}
|
||||
|
||||
if (!depFile.exists() && !dependency.isEmpty()) {
|
||||
System.out.println("bake: *** No rule to make target '" + dependency + "', needed by '" + name + "'. Stop.");
|
||||
|
Reference in New Issue
Block a user