Разделить среды и закрепить лицензии в HEADER 1.0

This commit is contained in:
AidarKC
2026-12-05 11:42:20 +03:00
parent a64168a748
commit 77c7021aed
89 changed files with 4204 additions and 211 deletions
+9 -1
View File
@@ -10,6 +10,14 @@ B=SHiNE-server/shine-server-blockchain/src/main/java/blockchain
T=SHiNE-server/shine-server-blockchain/src/test/java/blockchain
javac --release 17 -cp "$BCPROV_JAR" -d "$CLASSES" $(find "$B" -name '*.java') \
SHiNE-server/shine-server-crypto/src/main/java/utils/crypto/{Ed25519Util,HashSHA256Util}.java \
SHiNE-server/shine-server-config/src/main/java/utils/config/ShineSignatureConstants.java
SHiNE-server/shine-server-config/src/main/java/utils/config/{ShineSignatureConstants,AppConfig,ServerEnvironment}.java
javac --release 17 -cp "$CLASSES:$BCPROV_JAR" -d "$CLASSES" "$T"/body/*ContentBody.java "$T/StageAProtocolChecks.java"
java -cp "$CLASSES:$BCPROV_JAR" blockchain.StageAProtocolChecks
javac --release 17 -cp "$CLASSES:$BCPROV_JAR" -d "$CLASSES" scripts/tests/ServerEnvironmentCheck.java
VECTOR="$PWD/docs/Blockchain/vectors/core-content-v1.tsv"
mkdir "$CLASSES/test-env" "$CLASSES/prod-env" "$CLASSES/invalid-env"
printf 'server.testMode=false\n' > "$CLASSES/prod-env/application.properties"
printf 'server.testMode=oops\n' > "$CLASSES/invalid-env/application.properties"
(cd "$CLASSES/test-env"; java -cp "$CLASSES:$BCPROV_JAR" ServerEnvironmentCheck true "$VECTOR")
(cd "$CLASSES/prod-env"; java -cp "$CLASSES:$BCPROV_JAR" ServerEnvironmentCheck false "$VECTOR")
(cd "$CLASSES/invalid-env"; java -cp "$CLASSES:$BCPROV_JAR" ServerEnvironmentCheck true "$VECTOR")