in camel-k-core/deployment/src/main/java/org/apache/camel/k/core/quarkus/deployment/devmode/HotDeploymentProcessor.java [46:68]
List<HotDeploymentWatchedFileBuildItem> routes() {
final Config config = ConfigProvider.getConfig();
final Optional<String> value = config.getOptionalValue(Constants.PROPERTY_CAMEL_K_ROUTES, String.class);
List<HotDeploymentWatchedFileBuildItem> items = new ArrayList<>();
if (value.isPresent()) {
for (String source : value.get().split(",", -1)) {
String path = StringHelper.after(source, ":");
if (path == null) {
path = source;
}
Path p = Paths.get(path);
if (Files.exists(p)) {
LOGGER.info("Register source for hot deployment: {}", p.toAbsolutePath());
items.add(new HotDeploymentWatchedFileBuildItem(p.toAbsolutePath().toString()));
}
}
}
return items;
}