You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/10/07 16:35:41 UTC

[camel-kafka-connector] 03/04: Catalog: Rename the json file to reflect the id and connectors.properties content - set the name in the form camel-aws2-s3-sink/source.json

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch issue-534
in repository https://gitbox.apache.org/repos/asf/camel-kafka-connector.git

commit 40651b348920bc50fd6e819aeda7a36548eaadff
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Oct 7 18:07:22 2020 +0200

    Catalog: Rename the json file to reflect the id and connectors.properties content - set the name in the form camel-aws2-s3-sink/source.json
---
 .../camel/kafkaconnector/maven/CamelKafkaConnectorUpdateMojo.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tooling/camel-kafka-connector-generator-maven-plugin/src/main/java/org/apache/camel/kafkaconnector/maven/CamelKafkaConnectorUpdateMojo.java b/tooling/camel-kafka-connector-generator-maven-plugin/src/main/java/org/apache/camel/kafkaconnector/maven/CamelKafkaConnectorUpdateMojo.java
index 65e428f..10ec3ce 100644
--- a/tooling/camel-kafka-connector-generator-maven-plugin/src/main/java/org/apache/camel/kafkaconnector/maven/CamelKafkaConnectorUpdateMojo.java
+++ b/tooling/camel-kafka-connector-generator-maven-plugin/src/main/java/org/apache/camel/kafkaconnector/maven/CamelKafkaConnectorUpdateMojo.java
@@ -735,7 +735,7 @@ public class CamelKafkaConnectorUpdateMojo extends AbstractCamelKafkaConnectorMo
             model.setTitle(getMainDepArtifactId());
         }
         File docFolder = new File(connectorDir, "src/generated/resources/");
-        File docFile = new File(docFolder, getMainDepArtifactId() + "-kafka-" + ct.name().toLowerCase() + "-connector.json");
+        File docFile = new File(docFolder, getMainDepArtifactId() + "-" + ct.name().toLowerCase() + ".json");
         JsonObject j = JsonMapperKafkaConnector.asJsonObject(model);
         updateFile(docFile, Jsoner.prettyPrint(j.toJson()));
     }