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 94B58200C08 for ; Wed, 11 Jan 2017 22:15:18 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 92E1E160B3B; Wed, 11 Jan 2017 21:15:18 +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 E83D7160B4E for ; Wed, 11 Jan 2017 22:15:17 +0100 (CET) Received: (qmail 11698 invoked by uid 500); 11 Jan 2017 21:15:17 -0000 Mailing-List: contact issues-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 issues@camel.apache.org Received: (qmail 11672 invoked by uid 99); 11 Jan 2017 21:15:17 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jan 2017 21:15:17 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 11C7C2C03DD for ; Wed, 11 Jan 2017 21:15:17 +0000 (UTC) Date: Wed, 11 Jan 2017 21:15:17 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-10698) camel-maven - validate simple expression predicate vs expression MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 11 Jan 2017 21:15:18 -0000 [ https://issues.apache.org/jira/browse/CAMEL-10698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15819193#comment-15819193 ] Claus Ibsen commented on CAMEL-10698: ------------------------------------- Got this fixed for Java parser, need a bit for the XML parser > camel-maven - validate simple expression predicate vs expression > ---------------------------------------------------------------- > > Key: CAMEL-10698 > URL: https://issues.apache.org/jira/browse/CAMEL-10698 > Project: Camel > Issue Type: Improvement > Components: tooling > Reporter: Claus Ibsen > Assignee: Claus Ibsen > Fix For: 2.19.0 > > > When we get some details in the model we can find out if its a predicate or expression and use that in the validator to validate that correctly. > Now it can fail with > {code} > [INFO] --- camel-maven-plugin:2.19.0-SNAPSHOT:validate (default-cli) @ camel-example-spring-boot --- > [INFO] Using Camel version: 2.19.0-SNAPSHOT > [INFO] Endpoint validation success: (3 = passed, 0 = invalid, 0 = incapable, 0 = unknown components) > [WARNING] Simple validation error at: org.apache.camel.example.spring.boot.MySpringBootRouter.configure(MySpringBootRouter.java:34) > Unexpected token ! at location 8 > ${body} !> 50 > * > [WARNING] Simple validation error: (0 = passed, 1 = invalid) > {code} > In a route with > {code} > from("timer:trigger") > .filter().simple("${body} !> 50") > .to("log:out"); > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)