From 0bd6624d00172f157cd100e5e30f83b43adb91db Mon Sep 17 00:00:00 2001 From: montgolfiere Date: Wed, 15 Apr 2020 19:27:02 +0100 Subject: [PATCH] ATS-665: Update standard license log message on startup for all T-Engines (#221) - also minor fix for Misc to be consistent with other T-Engines - see also ATS-711 --- .../src/main/java/org/alfresco/transformer/Application.java | 1 + .../org/alfresco/transformer/logging/StandardMessages.java | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/alfresco-transform-misc/alfresco-transform-misc-boot/src/main/java/org/alfresco/transformer/Application.java b/alfresco-transform-misc/alfresco-transform-misc-boot/src/main/java/org/alfresco/transformer/Application.java index 71bc0352..d159c180 100644 --- a/alfresco-transform-misc/alfresco-transform-misc-boot/src/main/java/org/alfresco/transformer/Application.java +++ b/alfresco-transform-misc/alfresco-transform-misc-boot/src/main/java/org/alfresco/transformer/Application.java @@ -69,6 +69,7 @@ public class Application public void startup() { logger.info("--------------------------------------------------------------------------------------------------------------------------------------------------------------"); + Arrays.stream(LICENCE.split("\\n")).forEach(logger::info); Arrays.stream(SelectingTransformer.LICENCE.split("\\n")).forEach(logger::info); logger.info("--------------------------------------------------------------------------------------------------------------------------------------------------------------"); diff --git a/alfresco-transformer-base/src/main/java/org/alfresco/transformer/logging/StandardMessages.java b/alfresco-transformer-base/src/main/java/org/alfresco/transformer/logging/StandardMessages.java index 988e8b59..18dcec2f 100644 --- a/alfresco-transformer-base/src/main/java/org/alfresco/transformer/logging/StandardMessages.java +++ b/alfresco-transformer-base/src/main/java/org/alfresco/transformer/logging/StandardMessages.java @@ -29,7 +29,7 @@ package org.alfresco.transformer.logging; public interface StandardMessages { String LICENCE = - "License rights for this program may be obtained from Alfresco Software, Ltd. pursuant to a written agreement\n" + - "and any use of this program without such an agreement is prohibited.\n" + - "\n"; + "If the Alfresco software was purchased under a paid Alfresco license, the terms of the paid license agreement \n" + + "will prevail.Otherwise, the software is provided under terms of the GNU LGPL v3 license. \n" + + "See the license at http://www.gnu.org/licenses/lgpl-3.0.txt. or in /LICENSE.txt\\n"; }