Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ AdditionalBeanBuildItem camelRuntimeProducer(BuildProducer<BeanContainerListener
}

@Record(ExecutionTime.STATIC_INIT)
@BuildStep(applicationArchiveMarkers = { CamelSupport.CAMEL_SERVICE_BASE_PATH, "org/apache/camel" })
@BuildStep(applicationArchiveMarkers = { CamelSupport.CAMEL_SERVICE_BASE_PATH, CamelSupport.CAMEL_ROOT_PACKAGE_DIRECTORY })
CamelRuntimeBuildItem createInitTask(RecorderContext recorderContext, CamelTemplate template) {
Properties properties = new Properties();
Config configProvider = ConfigProvider.getConfig();
Expand All @@ -94,7 +94,7 @@ CamelRuntimeBuildItem createInitTask(RecorderContext recorderContext, CamelTempl
}

@Record(ExecutionTime.RUNTIME_INIT)
@BuildStep(applicationArchiveMarkers = { CamelSupport.CAMEL_SERVICE_BASE_PATH, "org/apache/camel" })
@BuildStep(applicationArchiveMarkers = { CamelSupport.CAMEL_SERVICE_BASE_PATH, CamelSupport.CAMEL_ROOT_PACKAGE_DIRECTORY })
void createRuntimeInitTask(CamelTemplate template, CamelRuntimeBuildItem runtime, ShutdownContextBuildItem shutdown)
throws Exception {
template.start(shutdown, runtime.getRuntime());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@
import io.quarkus.deployment.builditem.ApplicationArchivesBuildItem;

public final class CamelSupport {

public static final String CAMEL_SERVICE_BASE_PATH = "META-INF/services/org/apache/camel";

public static final String CAMEL_ROOT_PACKAGE_DIRECTORY = "org/apache/camel";

private CamelSupport() {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ private void handleHibernateORMWithNoPersistenceXml(
c -> {
throw new ConfigurationError(
"Unable to find file referenced in '" + HIBERNATE_ORM_CONFIG_PREFIX
+ "sql-load-script-source="
+ "sql-load-script="
+ c + "'. Remove property or add file to your path.");
});

Expand Down