This is an automated email from the ASF dual-hosted git repository. djencks pushed a commit to branch camel-spring-boot-3.7.x in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
The following commit(s) were added to refs/heads/camel-spring-boot-3.7.x by this push: new 7359aca fix tooling to link to correct version 7359aca is described below commit 7359acaaf2cc5695b3bb76e13c966ac6dfb71702 Author: David Jencks <djen...@apache.org> AuthorDate: Mon Oct 4 14:10:09 2021 -0700 fix tooling to link to correct version --- .../org/apache/camel/springboot/maven/ExtMvelHelper.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tooling/camel-spring-boot-docs-maven-plugin/src/main/java/org/apache/camel/springboot/maven/ExtMvelHelper.java b/tooling/camel-spring-boot-docs-maven-plugin/src/main/java/org/apache/camel/springboot/maven/ExtMvelHelper.java index 475142b..1c0dd5c 100644 --- a/tooling/camel-spring-boot-docs-maven-plugin/src/main/java/org/apache/camel/springboot/maven/ExtMvelHelper.java +++ b/tooling/camel-spring-boot-docs-maven-plugin/src/main/java/org/apache/camel/springboot/maven/ExtMvelHelper.java @@ -30,6 +30,8 @@ import org.apache.camel.tooling.model.SupportLevel; public class ExtMvelHelper { + private static final String CAMEL_VERSION = "3.7.x"; + private final Path extensionsDocPath; public ExtMvelHelper(Path extensionsDocPath) { @@ -56,15 +58,16 @@ public class ExtMvelHelper { public String getDocLink(ArtifactModel<?> model) { if (isLocalComponent(model)) { - return String.format("xref:%s.adoc", ((ArtifactModel<?>) model).getName()); + throw new RuntimeException("unexpected local model " + ((ArtifactModel<?>) model).getName()); +// return String.format("xref:%s.adoc", ((ArtifactModel<?>) model).getName()); } else if (model instanceof ComponentModel) { - return String.format("xref:3.7.x@components::%s-component.adoc", ((ComponentModel) model).getScheme()); + return String.format("xref:%s@components::%s-component.adoc", CAMEL_VERSION, ((ComponentModel) model).getScheme()); } else if (model instanceof DataFormatModel) { - return String.format("xref:3.7.x@components:dataformats:%s-dataformat.adoc", ((DataFormatModel) model).getName()); + return String.format("xref:%s@components:dataformats:%s-dataformat.adoc", CAMEL_VERSION, ((DataFormatModel) model).getName()); } else if (model instanceof LanguageModel) { - return String.format("xref:3.7.x@components:languages:%s-language.adoc", ((LanguageModel) model).getName()); + return String.format("xref:%s@components:languages:%s-language.adoc", CAMEL_VERSION, ((LanguageModel) model).getName()); } else if (model instanceof OtherModel) { - return String.format("xref:3.7.x@components:others:%s.adoc", ((OtherModel) model).getName()); + return String.format("xref:%s@components:others:%s.adoc", CAMEL_VERSION, ((OtherModel) model).getName()); } else { return null; }