From 68c2601941f0921b1770a32475967085c809781f Mon Sep 17 00:00:00 2001 From: Hans Van Akelyen Date: Wed, 15 Nov 2023 11:47:19 +0100 Subject: [PATCH] fix jsonpath renaming, #3315 --- .../googlesheets/GoogleSheetsInputMeta.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/plugins/tech/google/src/main/java/org/apache/hop/pipeline/transforms/googlesheets/GoogleSheetsInputMeta.java b/plugins/tech/google/src/main/java/org/apache/hop/pipeline/transforms/googlesheets/GoogleSheetsInputMeta.java index 84fd322ddea..ada1b80cbf0 100644 --- a/plugins/tech/google/src/main/java/org/apache/hop/pipeline/transforms/googlesheets/GoogleSheetsInputMeta.java +++ b/plugins/tech/google/src/main/java/org/apache/hop/pipeline/transforms/googlesheets/GoogleSheetsInputMeta.java @@ -48,6 +48,8 @@ public GoogleSheetsInputMeta() { super(); inputFields = new ArrayList<>(); } + @HopMetadataProperty(key="jsonCrendentialPath", injectionGroupKey = "SHEET" ,isExcludedFromInjection = true) + private String oldJsonCredentialPath; @HopMetadataProperty(key="jsonCredentialPath", injectionGroupKey = "SHEET") private String jsonCredentialPath; @@ -88,6 +90,10 @@ public void setDefault() { } public String getJsonCredentialPath() { + if(getOldJsonCredentialPath() != null && this.jsonCredentialPath == null){ + this.jsonCredentialPath = getOldJsonCredentialPath(); + setOldJsonCredentialPath(null); + } return this.jsonCredentialPath == null ? "" : this.jsonCredentialPath; } @@ -150,6 +156,15 @@ public void setAppName(String appName) { this.appName = appName; } + + public String getOldJsonCredentialPath() { + return oldJsonCredentialPath; + } + + public void setOldJsonCredentialPath(String oldJsonCredentialPath) { + this.oldJsonCredentialPath = oldJsonCredentialPath; + } + @Override public void getFields( IRowMeta rowMeta,