This is an automated email from the ASF dual-hosted git repository.

onders pushed a commit to branch CAMEL-13546
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 9bc24fd3f9941a0756b6653e87f3d2bd62420e47
Author: önder sezgin <ond...@apache.org>
AuthorDate: Mon May 20 14:49:07 2019 +0300

    CAMEL-13546 - as < and > is invalid in windows
    
    bypass if type starts with java.util.
---
 .../apache/camel/maven/packaging/SpringBootAutoConfigurationMojo.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 139915e..7de51d4 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
@@ -1140,7 +1140,7 @@ public class SpringBootAutoConfigurationMojo extends 
AbstractMojo {
 
     // read java type from project, returns null if not found
     private JavaClass readJavaType(String type) {
-        if (!type.startsWith("java.lang.")) {
+        if (!type.startsWith("java.lang.") && !type.startsWith("java.util.")) {
             final String fileName = type.replaceAll("[\\[\\]]", 
"").replaceAll("\\.", "\\/") + ".java";
             Path sourcePath = 
project.getCompileSourceRoots().stream().map(Paths::get).map(p -> 
p.resolve(fileName)).filter(Files::isRegularFile).findFirst().orElse(null);
             if (sourcePath == null) {

Reply via email to