Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4C0C0200B7A for ; Mon, 5 Sep 2016 09:37:45 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4A988160ACB; Mon, 5 Sep 2016 07:37:45 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 925CF160ABC for ; Mon, 5 Sep 2016 09:37:44 +0200 (CEST) Received: (qmail 56872 invoked by uid 500); 5 Sep 2016 07:37:43 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 56856 invoked by uid 99); 5 Sep 2016 07:37:43 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2016 07:37:43 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id E7A811812DF for ; Mon, 5 Sep 2016 07:37:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.487 X-Spam-Level: *** X-Spam-Status: No, score=3.487 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, LOTS_OF_MONEY=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id LL2hELlKRZQW for ; Mon, 5 Sep 2016 07:37:40 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTP id A70195FC25 for ; Mon, 5 Sep 2016 07:37:40 +0000 (UTC) Received: from static.162.255.23.22.macminivault.com (unknown [162.255.23.22]) by mbob.nabble.com (Postfix) with ESMTP id 23D92306C5F9 for ; Mon, 5 Sep 2016 00:36:18 -0700 (PDT) Date: Mon, 5 Sep 2016 00:37:39 -0700 (MST) From: sohrab To: users@camel.apache.org Message-ID: <1473061059177-5787192.post@n5.nabble.com> Subject: CamelBlueprintTestSupport doesn't like 6 directories deep MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Mon, 05 Sep 2016 07:37:45 -0000 I have found a weird/funny bug with CamelBlueprintTestSupport, I thought I share. I briefly looked at the source code but cannot see any obvious culprit so I thought I post it here if anyone feels like a challenge. Basically when I git-clone a project in a directory that is at most 5 levels deep from root directory, the blueprint test passes. But if it is cloned to a directory which is 6 levels or more, the blueprint fails to start. (As you can imagine, it took me ages to figure out this was the case!) I narrowed down the problem to blueprint config admin not being initialised properly. Then I looked at the source code for CamelBlueprintTestSupport and realised it uses hardcoded relative paths like "target/etc". https://github.com/apache/camel/blob/master/components/camel-test-blueprint/src/main/java/org/apache/camel/test/blueprint/CamelBlueprintTestSupport.java#L523 Here is the thing: I am using Gradle; there is no "target" directory! It does get created as part of the blueprint test though. The $1M question is why is 6 directories deep is significant in all this?! It definitely is not the string length of the absolute path as I tried a really long path, but only 5 levels deep, and the blueprint started fine. *If anyone else encountered this, the work-around is to use "target" directory as the Gradle's buildDir; then the test passes in any directory!* I'll investigate it further once I get some free time but double you tee eff! -- View this message in context: http://camel.465427.n5.nabble.com/CamelBlueprintTestSupport-doesn-t-like-6-directories-deep-tp5787192.html Sent from the Camel - Users mailing list archive at Nabble.com.