[ 
https://issues.apache.org/jira/browse/CAMEL-13990?focusedWorklogId=314257&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-314257
 ]

ASF GitHub Bot logged work on CAMEL-13990:
------------------------------------------

                Author: ASF GitHub Bot
            Created on: 18/Sep/19 11:40
            Start Date: 18/Sep/19 11:40
    Worklog Time Spent: 10m 
      Work Description: omarsmak commented on pull request #3177: CAMEL-13990: 
Add schema name checks in EndpointAnnotationProcessor
URL: https://github.com/apache/camel/pull/3177
 
 
   In case if the schema name is not lowercase, the compilation will fail with 
an error message that indicates where it happened and why: For example:
   ```
   [INFO] 
------------------------------------------------------------------------
   [INFO] BUILD FAILURE
   [INFO] 
------------------------------------------------------------------------
   [INFO] Total time:  6.496 s
   [INFO] Finished at: 2019-09-18T13:36:15+02:00
   [INFO] 
------------------------------------------------------------------------
   [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) 
on project camel-debezium: Compilation failure
   [ERROR] error: Schema name 'debezZum' in 
'org.apache.camel.component.debezium.DebeziumEndpoint' must be lowercase!
   [ERROR] 
   ...
   
-----------------------------------------------------------------------------------------------
   ```
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

            Worklog Id:     (was: 314257)
    Remaining Estimate: 0h
            Time Spent: 10m

> Add UriEndpoint annotation checks for the schema name in the apt compiler so 
> the compilation can fail in case there are invalid options set
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-13990
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13990
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-apt
>    Affects Versions: 3.0.0.RC1
>            Reporter: Omar Al-Safi
>            Assignee: Omar Al-Safi
>            Priority: Minor
>             Fix For: 3.x
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Currently if the user sets invalid options in the UriEndpoint annotation, for 
> example invalid schema name, the compilation will continue without failing, 
> therefore it makes if we try to add a check in that apt compiler so the 
> compilation will fail. We just need to make sure the end user can see the 
> error message



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to