Experiment with generating spring-boot auto configuration for the Camel 
components.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/f9cbfb25
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/f9cbfb25
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/f9cbfb25

Branch: refs/heads/boot-generate
Commit: f9cbfb2561996c54e43fe05d3cab36ba08289aad
Parents: 4f1d8a8
Author: Claus Ibsen <davscl...@apache.org>
Authored: Tue Jun 7 16:22:09 2016 +0200
Committer: Claus Ibsen <davscl...@apache.org>
Committed: Tue Jun 7 16:22:09 2016 +0200

----------------------------------------------------------------------
 .../camel/maven/packaging/SpringBootAutoConfigurationMojo.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/f9cbfb25/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SpringBootAutoConfigurationMojo.java
----------------------------------------------------------------------
diff --git 
a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SpringBootAutoConfigurationMojo.java
 
b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SpringBootAutoConfigurationMojo.java
index 3009a37..78f5503 100644
--- 
a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SpringBootAutoConfigurationMojo.java
+++ 
b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SpringBootAutoConfigurationMojo.java
@@ -114,7 +114,7 @@ public class SpringBootAutoConfigurationMojo extends 
AbstractMojo {
                     ComponentModel model = 
generateComponentModel(componentName, json);
 
                     // only create source code if the component has options 
that can be used in auto configuration
-                    if (!model.getComponentOptions().isEmpty() {
+                    if (!model.getComponentOptions().isEmpty()) {
 
                         // use springboot as sub package name so the code is 
not in normal
                         // package so the Spring Boot JARs can be optional at 
runtime

Reply via email to