Properties answer = getProperties();
if (answer == null && getPropertiesFile() != null) {
LOG.info("Loading Quartz properties file from classpath: {}", getPropertiesFile());
InputStream is = getCamelContext().getClassResolver().loadResourceAsStream(getPropertiesFile());
if (is == null) {
throw new SchedulerException("Quartz properties file not found in classpath: " + getPropertiesFile());
}
answer = new Properties();
try {
answer.load(is);
} catch (IOException e) {
throw new SchedulerException("Error loading Quartz properties file from classpath: " + getPropertiesFile(), e);
}
}
return answer;
}