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/08/23 13:32:18 UTC
[camel] 03/03: CAMEL-16881: camel-catalog - Remove the
documentation files (adoc) as they are not in us
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
commit e76604591fe4dbf1268d604cca52215bb0c70ed7
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Aug 23 15:31:36 2021 +0200
CAMEL-16881: camel-catalog - Remove the documentation files (adoc) as they are not in us
---
.../camel/maven/packaging/UpdateReadmeMojo.java | 33 ----------------------
1 file changed, 33 deletions(-)
diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/UpdateReadmeMojo.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/UpdateReadmeMojo.java
index 6817577..ad914cc 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/UpdateReadmeMojo.java
+++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/UpdateReadmeMojo.java
@@ -228,10 +228,6 @@ public class UpdateReadmeMojo extends AbstractGeneratorMojo {
if (rootFile != null) {
Path root = rootFile.toPath().getParent().getParent();
String text = PackageHelper.loadText(file);
- updateResource(
- root.resolve(
- "catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs"),
- file.getName(), text);
String rep = "$1\n"
+ "//THIS FILE IS COPIED: EDIT THE SOURCE FILE:\n"
+ ":page-source: " + root.relativize(file.toPath());
@@ -291,10 +287,6 @@ public class UpdateReadmeMojo extends AbstractGeneratorMojo {
if (rootFile != null) {
Path root = rootFile.toPath().getParent().getParent();
String text = PackageHelper.loadText(file);
- updateResource(
- root.resolve(
- "catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs"),
- file.getName(), text);
String rep = "$1\n"
+ "//THIS FILE IS COPIED: EDIT THE SOURCE FILE:\n"
+ ":page-source: " + root.relativize(file.toPath());
@@ -372,10 +364,6 @@ public class UpdateReadmeMojo extends AbstractGeneratorMojo {
if (rootFile != null) {
Path root = rootFile.toPath().getParent().getParent();
String text = PackageHelper.loadText(file);
- updateResource(
- root.resolve(
- "catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs"),
- file.getName(), text);
String rep = "$1\n"
+ "//THIS FILE IS COPIED: EDIT THE SOURCE FILE:\n"
+ ":page-source: " + root.relativize(file.toPath());
@@ -467,10 +455,6 @@ public class UpdateReadmeMojo extends AbstractGeneratorMojo {
if (rootFile != null) {
Path root = rootFile.toPath().getParent().getParent();
String text = PackageHelper.loadText(file);
- updateResource(
- root.resolve(
- "catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs"),
- file.getName(), text);
String rep = "$1\n"
+ "//THIS FILE IS COPIED: EDIT THE SOURCE FILE:\n"
+ ":page-source: " + root.relativize(file.toPath());
@@ -563,23 +547,6 @@ public class UpdateReadmeMojo extends AbstractGeneratorMojo {
throw new MojoExecutionException("Failed build due failFast=true");
}
}
-
- if (updated || exists) {
- try {
- // if we run in camel-core project then add additional meta-data
- File rootFile = findCamelDirectory(project.getBasedir(), "core/camel-core");
- if (rootFile != null) {
- Path root = rootFile.toPath().getParent().getParent();
- String text = PackageHelper.loadText(file);
- updateResource(
- root.resolve(
- "catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs"),
- file.getName(), text);
- }
- } catch (IOException e) {
- throw new MojoExecutionException("Error reading file " + file + " Reason: " + e, e);
- }
- }
}
}
}