in src/main/java/org/apache/sling/launchpad/base/impl/bootstrapcommands/BootstrapCommandFile.java [66:89]
boolean anythingToExecute(BundleContext ctx) {
boolean result = false;
if(commandFile != null && commandFile.exists() && commandFile.canRead()) {
final long cmdTs = commandFile.lastModified();
long lastExecution = 0;
try {
lastExecution = loadTimestamp(ctx);
} catch(IOException ioe) {
logger.log(Logger.LOG_INFO, "IOException reading timestamp", ioe);
}
if(cmdTs > lastExecution) {
logger.log(Logger.LOG_INFO,
"Command file timestamp > stored timestamp, need to execute commands ("
+ commandFile.getAbsolutePath() + ")");
result = true;
}
}
if(!result) {
logger.log(Logger.LOG_INFO,
"Command file absent or older than last execution timestamp, nothing to execute ("
+ commandFile.getAbsolutePath() + ")");
}
return result;
}