Quand un fichier n'est pas trouvé dans une règle, on arrête le programme et affiche un message d'erreur.
This commit is contained in:
parent
1f31e318dc
commit
ad19cecc45
@ -104,6 +104,11 @@ public class Rule {
|
|||||||
|
|
||||||
for (String dependency : dependencies) {
|
for (String dependency : dependencies) {
|
||||||
File depFile = new File(dependency);
|
File depFile = new File(dependency);
|
||||||
|
if (!depFile.exists()) {
|
||||||
|
System.out.println("bake: *** No rule to make target '" + dependency + "', needed by '" + name + "'. Stop.");
|
||||||
|
System.exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
if (depFile.exists() && TimestampManager.getTimestamp(depFile) > targetTimestamp) {
|
if (depFile.exists() && TimestampManager.getTimestamp(depFile) > targetTimestamp) {
|
||||||
if (BakeCLI.isDebug()) {
|
if (BakeCLI.isDebug()) {
|
||||||
System.out.println("Debug : Dependency " + dependency + " is newer than target file " + name + ", needs update");
|
System.out.println("Debug : Dependency " + dependency + " is newer than target file " + name + ", needs update");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user