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 2022/04/15 09:27:37 UTC
[camel] 02/02: camel-core - Better loc:line for other DSLs
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 98ba9b9601b76890f6be4c4a23d253729b14df34
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Apr 15 11:27:26 2022 +0200
camel-core - Better loc:line for other DSLs
---
.../main/java/org/apache/camel/model/ProcessorDefinitionHelper.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/core/camel-core-model/src/main/java/org/apache/camel/model/ProcessorDefinitionHelper.java b/core/camel-core-model/src/main/java/org/apache/camel/model/ProcessorDefinitionHelper.java
index 41fb8234338..41289f41874 100644
--- a/core/camel-core-model/src/main/java/org/apache/camel/model/ProcessorDefinitionHelper.java
+++ b/core/camel-core-model/src/main/java/org/apache/camel/model/ProcessorDefinitionHelper.java
@@ -383,8 +383,8 @@ public final class ProcessorDefinitionHelper {
node.setLocation(resource.getLocation());
String ext = FileUtil.onlyExt(resource.getLocation(), true);
- if ("groovy".equals(ext)) {
- // we cannot get line number for groovy scripts
+ if ("groovy".equals(ext) || "js".equals(ext)) {
+ // we cannot get line number for groovy/javascript scripts
return;
}
}