fabric8io / fabric8-forge

Supports JBoss Forge plugins for the Fabric8 iPaaS along with using Forge as a REST service inside Fabric8 DevOps
Apache License 2.0
11 stars 21 forks source link

camel-edit-component - To configure a component #424

Open davsclaus opened 8 years ago

davsclaus commented 8 years ago

So we can configure components, like we can do for endpoints.

Currently it creates Java code, but for Spring Boot we can configure this in application.properties / yml file.

davsclaus commented 8 years ago

This command supports editing Camel component options for a Spring Boot project in the application.properties file.

The .yaml file is not yet supported, but will work on that. Would require using SnakeYaml or something to parse the yaml.

davsclaus commented 8 years ago

yaml is a bit more tricky as it can be one line or multi lined values. And SnakeYaml do not preserve comments / spaces.

So we either have to write our own line number parser that can map a key to a line so we can do a gentle replace. And insert new values in the right place.