camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject git commit: Fixed the JDK 1.6 issus of EndpointAnnotationProcessor
Date Fri, 21 Feb 2014 02:27:54 GMT
Repository: camel
Updated Branches:
  refs/heads/master 5d1eebccc -> eac563787


Fixed the JDK 1.6 issus of EndpointAnnotationProcessor


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

Branch: refs/heads/master
Commit: eac5637874b4dd7d833192dd0dcfe49fcb143744
Parents: 5d1eebc
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Fri Feb 21 10:23:40 2014 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Fri Feb 21 10:24:14 2014 +0800

----------------------------------------------------------------------
 .../org/apache/camel/tools/apt/EndpointAnnotationProcessor.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/eac56378/tooling/apt/src/main/java/org/apache/camel/tools/apt/EndpointAnnotationProcessor.java
----------------------------------------------------------------------
diff --git a/tooling/apt/src/main/java/org/apache/camel/tools/apt/EndpointAnnotationProcessor.java
b/tooling/apt/src/main/java/org/apache/camel/tools/apt/EndpointAnnotationProcessor.java
index 386eca7..a8ba256 100644
--- a/tooling/apt/src/main/java/org/apache/camel/tools/apt/EndpointAnnotationProcessor.java
+++ b/tooling/apt/src/main/java/org/apache/camel/tools/apt/EndpointAnnotationProcessor.java
@@ -291,7 +291,7 @@ public class EndpointAnnotationProcessor extends AbstractProcessor {
             File file = null;
             if (uri != null) {
                 try {
-                    file = new File(uri);
+                    file = new File(uri.getPath());
                 } catch (Exception e) {
                     warning("Could not convert output directory resource URI to a file "
+ e);
                 }


Mime
View raw message