.getSimple(AugeasConfigurationComponent.EXCLUDE_GLOBS_PROP));
boolean isIncluded = false;
for (String include : includeGlobs) {
if (new GlobFilter(include).accept(crontabFile)) {
isIncluded = true;
break;
}
}
String errorText = "Given Cron tab file name would be created outside of mapped filters. See the Cron resource connection properties for the inclusion and exclusion filters set up.";
if (!isIncluded) {
throw new IllegalArgumentException(errorText);
}
for (String exclude : excludeGlobs) {
if (new GlobFilter(exclude).accept(crontabFile)) {
throw new IllegalArgumentException(errorText);
}
}
updateCrontab(resourceName, configurationDefinition, resourceConfiguration);