You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by ah...@apache.org on 2023/02/08 10:50:46 UTC

[causeway] 01/02: CAUSEWAY-3354: update rename-script to restore XML namespace identifiers

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

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

commit 0cdec15b2d267effaeea741b748a18c3c9656f45
Author: Andi Huber <ah...@apache.org>
AuthorDate: Wed Feb 8 11:46:23 2023 +0100

    CAUSEWAY-3354: update rename-script to restore XML namespace identifiers
---
 scripts/ci/rename-all-published-sources.jsh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/scripts/ci/rename-all-published-sources.jsh b/scripts/ci/rename-all-published-sources.jsh
index a0669fa563..1993c6c0e0 100644
--- a/scripts/ci/rename-all-published-sources.jsh
+++ b/scripts/ci/rename-all-published-sources.jsh
@@ -211,7 +211,11 @@ class RenameProject {
                 var newLine = line
                         .replace(fromLower, toLower)
                         .replace(fromUpper, toUpper)
-                        .replace(fromTitle, toTitle);
+                        .replace(fromTitle, toTitle)
+                        // restore XML namespace identifiers 
+                        .replace(
+                                "https://" + fromLower + ".apache.org/applib/layout",
+                                "http://" + toLower + ".apache.org/applib/layout");
                 newLines.add(newLine);
                 return line.equals(newLine)
                         ? 0