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

[camel-quarkus] 03/06: Polished

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

davsclaus pushed a commit to branch fix245
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git

commit 3345f84ab01ccd911c787e3b32264ac104746b05
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Oct 9 12:27:09 2019 +0200

    Polished
---
 .../quarkus/maven/UpdateDocExtensionsListMojo.java | 29 ++++++----------------
 1 file changed, 7 insertions(+), 22 deletions(-)

diff --git a/tooling/maven/package-maven-plugin/src/main/java/org/apache/camel/quarkus/maven/UpdateDocExtensionsListMojo.java b/tooling/maven/package-maven-plugin/src/main/java/org/apache/camel/quarkus/maven/UpdateDocExtensionsListMojo.java
index b9d1148..08a439b 100644
--- a/tooling/maven/package-maven-plugin/src/main/java/org/apache/camel/quarkus/maven/UpdateDocExtensionsListMojo.java
+++ b/tooling/maven/package-maven-plugin/src/main/java/org/apache/camel/quarkus/maven/UpdateDocExtensionsListMojo.java
@@ -175,15 +175,11 @@ public class UpdateDocExtensionsListMojo extends AbstractMojo {
                     .filter(c -> "true".equals(c.getDeprecated()))
                     .count();
 
-            // update the big readme file in the core/components dir
-            File file;
-            file = new File(readmeExtensionsDir, "readme.adoc");
-
-            // update regular components
+            // update the big readme file in the extensions dir
+            File file = new File(readmeExtensionsDir, "readme.adoc");
             boolean exists = file.exists();
             String changed = templateComponents(components, count, deprecated);
             boolean updated = updateComponents(file, changed);
-
             if (updated) {
                 getLog().info("Updated readme.adoc file: " + file);
             } else if (exists) {
@@ -240,15 +236,11 @@ public class UpdateDocExtensionsListMojo extends AbstractMojo {
                 dataFormats.add(model);
             }
 
-            // update the big readme file in the core/components dir
-            File file;
-            file = new File(readmeExtensionsDir, "readme.adoc");
-
-            // update regular data formats
+            // update the big readme file in the extensions dir
+            File file = new File(readmeExtensionsDir, "readme.adoc");
             boolean exists = file.exists();
             String changed = templateDataFormats(dataFormats, count, deprecated);
             boolean updated = updateDataFormats(file, changed);
-
             if (updated) {
                 getLog().info("Updated readme.adoc file: " + file);
             } else if (exists) {
@@ -299,15 +291,11 @@ public class UpdateDocExtensionsListMojo extends AbstractMojo {
                     .filter(l -> "true".equals(l.getDeprecated()))
                     .count();
 
-            // update the big readme file in the core/components dir
-            File file;
-            file = new File(readmeExtensionsDir, "readme.adoc");
-
-            // update regular data formats
+            // update the big readme file in the extensions dir
+            File file = new File(readmeExtensionsDir, "readme.adoc");
             boolean exists = file.exists();
             String changed = templateLanguages(languages, count, deprecated);
             boolean updated = updateLanguages(file, changed);
-
             if (updated) {
                 getLog().info("Updated readme.adoc file: " + file);
             } else if (exists) {
@@ -352,14 +340,11 @@ public class UpdateDocExtensionsListMojo extends AbstractMojo {
                     .filter(o -> "true".equals(o.getDeprecated()))
                     .count();
 
-            // update the big readme file in the components dir
+            // update the big readme file in the extensions dir
             File file = new File(readmeExtensionsDir, "readme.adoc");
-
-            // update regular components
             boolean exists = file.exists();
             String changed = templateOthers(others, count, deprecated);
             boolean updated = updateOthers(file, changed);
-
             if (updated) {
                 getLog().info("Updated readme.adoc file: " + file);
             } else if (exists) {