This is an automated email from the ASF dual-hosted git repository.
liugddx pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/seatunnel.git
The following commit(s) were added to refs/heads/dev by this push:
new 6915f7b63c [Zeta][Tool] Move generate_client_protocol.sh to engine
module (#5667)
6915f7b63c is described below
commit 6915f7b63c5e3b965fccaeac6f8660c495185df0
Author: Jia Fan <[email protected]>
AuthorDate: Thu Oct 26 12:33:55 2023 +0800
[Zeta][Tool] Move generate_client_protocol.sh to engine module (#5667)
---
.../src/main/resources/generate_client_protocol.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/generate_client_protocol.sh
b/seatunnel-engine/seatunnel-engine-core/src/main/resources/generate_client_protocol.sh
similarity index 85%
rename from generate_client_protocol.sh
rename to
seatunnel-engine/seatunnel-engine-core/src/main/resources/generate_client_protocol.sh
index 7ad1d5b160..b20076446d 100755
--- a/generate_client_protocol.sh
+++
b/seatunnel-engine/seatunnel-engine-core/src/main/resources/generate_client_protocol.sh
@@ -18,7 +18,7 @@
#
SCRIPT_DIR="$(dirname "$0")"
-SEATUNNEL_ENGINE_HOME="$(cd "$SCRIPT_DIR/"; pwd)"
+SEATUNNEL_ENGINE_HOME="$(cd "$SCRIPT_DIR/../../../../"; pwd)"
PYTHON="$(which python3 2>/dev/null)"
PIP3="$(which pip3 2>/dev/null)"
@@ -51,8 +51,8 @@ cd $PROTOCOL_DIRECTORY
$PIP3 install -r requirements.txt
-$PYTHON generator.py -r $SEATUNNEL_ENGINE_HOME -p
$SEATUNNEL_ENGINE_HOME/seatunnel-engine/seatunnel-engine-core/src/main/resources/client-protocol-definition
\
--o
/tmp/seatunnel-engine/seatunnel-engine-core/src/main/java/org/apache/seatunnel/engine/core/protocol/codec
\
+$PYTHON generator.py -r $SEATUNNEL_ENGINE_HOME -p
$SEATUNNEL_ENGINE_HOME/seatunnel-engine-core/src/main/resources/client-protocol-definition
\
+-o
$SEATUNNEL_ENGINE_HOME/seatunnel-engine-core/src/main/java/org/apache/seatunnel/engine/core/protocol/codec
\
-n org.apache.seatunnel.engine.core.protocol.codec --no-binary --no-id-check
rm -rf $PROTOCOL_DIRECTORY
\ No newline at end of file