camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-10698) camel-maven - validate simple expression predicate vs expression
Date Wed, 11 Jan 2017 21:15:17 GMT

    [ 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)

Mime
View raw message