Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 38BA817443 for ; Sun, 14 Jun 2015 14:10:12 +0000 (UTC) Received: (qmail 54558 invoked by uid 500); 14 Jun 2015 13:38:54 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 32147 invoked by uid 500); 14 Jun 2015 13:38:22 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 26303 invoked by uid 99); 14 Jun 2015 13:16:59 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Jun 2015 13:16:59 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 25AF4DFBC6; Sun, 14 Jun 2015 13:16:59 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: davsclaus@apache.org To: commits@camel.apache.org Date: Sun, 14 Jun 2015 13:17:00 -0000 Message-Id: In-Reply-To: <83b5f482af6447cf9d0018d6ef8f4e77@git.apache.org> References: <83b5f482af6447cf9d0018d6ef8f4e77@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/2] camel git commit: Component docs Component docs Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/12e0ce4c Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/12e0ce4c Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/12e0ce4c Branch: refs/heads/master Commit: 12e0ce4c0f79486faa3adc8e93af160a73375bf8 Parents: 827bcf5 Author: Claus Ibsen Authored: Sun Jun 14 13:56:57 2015 +0200 Committer: Claus Ibsen Committed: Sun Jun 14 15:22:20 2015 +0200 ---------------------------------------------------------------------- .../java/org/apache/camel/tools/apt/DocumentationHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/12e0ce4c/tooling/apt/src/main/java/org/apache/camel/tools/apt/DocumentationHelper.java ---------------------------------------------------------------------- diff --git a/tooling/apt/src/main/java/org/apache/camel/tools/apt/DocumentationHelper.java b/tooling/apt/src/main/java/org/apache/camel/tools/apt/DocumentationHelper.java index 916e0e3..e8e8cf7 100644 --- a/tooling/apt/src/main/java/org/apache/camel/tools/apt/DocumentationHelper.java +++ b/tooling/apt/src/main/java/org/apache/camel/tools/apt/DocumentationHelper.java @@ -91,8 +91,8 @@ public final class DocumentationHelper { } private static File jsonFile(String scheme, String extendsScheme) { - // TODO: scan components for each component and find component name from extendsScheme - // and then find the package name where the json file is + // we cannot use classloader to load external resources from other JARs during apt plugin, + // so load these resources using the file system if ("file".equals(extendsScheme)) { return new File("../../camel-core/target/classes/org/apache/camel/component/file/file.json");