Skip to content

Commit

Permalink
[Bug][Core] Fix Change SeaTunnel Logo Print Error in some jdk version (
Browse files Browse the repository at this point in the history
…#3160)

* [Bug][Core] Fix Change SeaTunnel Logo Print Error in some jdk version

* [Improve][Core] remove unuse class
  • Loading branch information
john8628 authored Oct 25, 2022
1 parent 389872a commit dae1bda
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 156 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ public final class Constants {

public static final String NOW = "now";

public static final String ST_LOGO =
" \n" +
" _____ _____ _ \n" +
"/ ___| |_ _| | |\n" +
"\\ `--. ___ __ _ | | _ _ _ __ _ __ ___ | |\n" +
" `--. \\ / _ \\ / _` | | | | | | || '_ \\ | '_ \\ / _ \\| |\n" +
"/\\__/ /| __/| (_| | | | | |_| || | | || | | || __/| |\n" +
"\\____/ \\___| \\__,_| \\_/ \\__,_||_| |_||_| |_| \\___||_|\n" +
" \n";
public static final String COPYRIGHT_LINE = "Copyright © 2021-2022 The Apache Software Foundation. Apache SeaTunnel, SeaTunnel, and its feather logo are trademarks of The Apache Software Foundation.";
private Constants() {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import org.apache.seatunnel.common.config.CheckResult;
import org.apache.seatunnel.common.config.Common;
import org.apache.seatunnel.common.config.DeployMode;
import org.apache.seatunnel.core.base.utils.AsciiArtUtils;
import org.apache.seatunnel.core.base.utils.CompressionUtils;

import lombok.extern.slf4j.Slf4j;
Expand Down Expand Up @@ -96,7 +95,8 @@ protected final void close(List<? extends Plugin<E>>... plugins) {
protected void showAsciiLogo() {
String printAsciiLogo = System.getenv("SEATUNNEL_PRINT_ASCII_LOGO");
if ("true".equalsIgnoreCase(printAsciiLogo)) {
AsciiArtUtils.printAsciiArt(Constants.LOGO);
log.info('\n' + Constants.ST_LOGO);
log.info(Constants.COPYRIGHT_LINE);
}
}

Expand Down Expand Up @@ -145,5 +145,4 @@ private void deployModeCheck() {
log.info("succeeded to decompress plugins.tar.gz");
}
}

}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import static com.hazelcast.cluster.ClusterState.PASSIVE;

import org.apache.seatunnel.common.Constants;
import org.apache.seatunnel.engine.common.Constant;

import com.hazelcast.cluster.ClusterState;
Expand All @@ -30,17 +31,6 @@
import java.util.Map;

class NodeExtensionCommon {
private static final String ST_LOGO =
" \n" +
" _____ _____ _ \n" +
"/ ___| |_ _| | |\n" +
"\\ `--. ___ __ _ | | _ _ _ __ _ __ ___ | |\n" +
" `--. \\ / _ \\ / _` | | | | | | || '_ \\ | '_ \\ / _ \\| |\n" +
"/\\__/ /| __/| (_| | | | | |_| || | | || | | || __/| |\n" +
"\\____/ \\___| \\__,_| \\_/ \\__,_||_| |_||_| |_| \\___||_|\n" +
" \n";
private static final String COPYRIGHT_LINE = "Copyright © 2021-2022 The Apache Software Foundation. Apache SeaTunnel, SeaTunnel, and its feather logo are trademarks of The Apache Software Foundation.";

private final Node node;
private final ILogger logger;
private final SeaTunnelServer server;
Expand Down Expand Up @@ -72,8 +62,8 @@ void printNodeInfo(ILogger log, String addToProductName) {
log.info(imdgVersionMessage());
log.info(clusterNameMessage());
log.fine(serializationVersionMessage());
log.info('\n' + ST_LOGO);
log.info(COPYRIGHT_LINE);
log.info('\n' + Constants.ST_LOGO);
log.info(Constants.COPYRIGHT_LINE);
}

private String imdgVersionMessage() {
Expand Down

0 comments on commit dae1bda

Please sign in to comment.