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

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


The following commit(s) were added to refs/heads/master by this push:
     new 6e4c8a0  Camel-Examples: PrepareExampleMojo doesn't need to filter for 
camel-example-* string anymore
6e4c8a0 is described below

commit 6e4c8a026259cfb3550a03cfb1a14433ff8e1488
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Thu Mar 18 07:44:03 2021 +0100

    Camel-Examples: PrepareExampleMojo doesn't need to filter for 
camel-example-* string anymore
---
 .../java/org/apache/camel/maven/packaging/PrepareExampleMojo.java  | 7 -------
 1 file changed, 7 deletions(-)

diff --git 
a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareExampleMojo.java
 
b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareExampleMojo.java
index 4a342c3..74952d4 100644
--- 
a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareExampleMojo.java
+++ 
b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareExampleMojo.java
@@ -102,13 +102,6 @@ public class PrepareExampleMojo extends AbstractMojo {
             for (File file : examples) {
                 if (file.isDirectory()) {
 
-                    // must match filter
-                    if (filter != null && !filter.isEmpty()) {
-                        if (!file.getName().startsWith(filter)) {
-                            continue;
-                        }
-                    }
-
                     File pom = new File(file, "pom.xml");
                     if (pom.exists()) {
                         String existing = FileUtils.readFileToString(pom, 
Charset.defaultCharset());

Reply via email to