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 2021/12/10 18:49:16 UTC

[camel] branch main updated: CAMEL-17317: Remove in docs for camel-maven-plugin a feature that has been removed but forgot to remove in docs.

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

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


The following commit(s) were added to refs/heads/main by this push:
     new f86e5b9  CAMEL-17317: Remove in docs for camel-maven-plugin a feature that has been removed but forgot to remove in docs.
f86e5b9 is described below

commit f86e5b951dd1de4815a527c4b6c50bdad6de60c7
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Dec 10 19:48:41 2021 +0100

    CAMEL-17317: Remove in docs for camel-maven-plugin a feature that has been removed but forgot to remove in docs.
---
 .../modules/ROOT/pages/camel-maven-plugin.adoc      | 21 ---------------------
 .../src/main/docs/camel-maven-plugin.adoc           | 21 ---------------------
 .../main/java/org/apache/camel/maven/RunMojo.java   | 10 ----------
 3 files changed, 52 deletions(-)

diff --git a/docs/user-manual/modules/ROOT/pages/camel-maven-plugin.adoc b/docs/user-manual/modules/ROOT/pages/camel-maven-plugin.adoc
index 4392c8f..240f911 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-maven-plugin.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-maven-plugin.adoc
@@ -92,27 +92,6 @@ This is default turned off, to use the configured logging system in the project.
 The idea with the built-in logging is that you sometimes want to avoid messing with setting
 up logging, and just want a quick and easy log to console that looks good.
 
-=== Using live reload of XML files
-
-You can configure the plugin to scan for XML file changes and trigger a reload of the Camel routes which are contained in those XML files.
-
-[source,xml]
-----
-<plugin>
-  <groupId>org.apache.camel</groupId>
-  <artifactId>camel-maven-plugin</artifactId>
-  <configuration>
-    <fileWatcherDirectory>src/main/resources/META-INF/spring</fileWatcherDirectory>
-  </configuration>
-</plugin>
-----
-
-Then the plugin watches this directory. This allows you to edit the source code from your editor and save the file, and have
-    the running Camel application pickup those changes.
-
-Notice its only changes of Camel routes, eg `<routes>`, or `<route>` which is supported.
-You cannot change Spring or OSGi Blueprint `<bean>` elements.
-
 
 == camel:prepare-fatjar
 
diff --git a/tooling/maven/camel-maven-plugin/src/main/docs/camel-maven-plugin.adoc b/tooling/maven/camel-maven-plugin/src/main/docs/camel-maven-plugin.adoc
index 4392c8f..240f911 100644
--- a/tooling/maven/camel-maven-plugin/src/main/docs/camel-maven-plugin.adoc
+++ b/tooling/maven/camel-maven-plugin/src/main/docs/camel-maven-plugin.adoc
@@ -92,27 +92,6 @@ This is default turned off, to use the configured logging system in the project.
 The idea with the built-in logging is that you sometimes want to avoid messing with setting
 up logging, and just want a quick and easy log to console that looks good.
 
-=== Using live reload of XML files
-
-You can configure the plugin to scan for XML file changes and trigger a reload of the Camel routes which are contained in those XML files.
-
-[source,xml]
-----
-<plugin>
-  <groupId>org.apache.camel</groupId>
-  <artifactId>camel-maven-plugin</artifactId>
-  <configuration>
-    <fileWatcherDirectory>src/main/resources/META-INF/spring</fileWatcherDirectory>
-  </configuration>
-</plugin>
-----
-
-Then the plugin watches this directory. This allows you to edit the source code from your editor and save the file, and have
-    the running Camel application pickup those changes.
-
-Notice its only changes of Camel routes, eg `<routes>`, or `<route>` which is supported.
-You cannot change Spring or OSGi Blueprint `<bean>` elements.
-
 
 == camel:prepare-fatjar
 
diff --git a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
index f4ef4ea..6b7ded2 100644
--- a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
+++ b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
@@ -206,12 +206,6 @@ public class RunMojo extends AbstractExecMojo {
     private String configAdminFileName;
 
     /**
-     * To watch the directory for file changes which triggers a live reload of the Camel routes on-the-fly.
-     */
-    @Parameter(property = "camel.fileWatcherDirectory")
-    private String fileWatcherDirectory;
-
-    /**
      * The class arguments.
      */
     @Parameter(property = "camel.arguments")
@@ -342,10 +336,6 @@ public class RunMojo extends AbstractExecMojo {
         if (trace) {
             args.add("-t");
         }
-        if (fileWatcherDirectory != null) {
-            args.add("-watch");
-            args.add(fileWatcherDirectory);
-        }
 
         if (applicationContextUri != null) {
             args.add("-ac");