Adds copy-dot-cache-file-to-cpqd-configuration-jar.sh and copy-messages-properties-files-to-deployments-folder.sh

This commit is contained in:
Matheus Albino Brunhara
2024-12-06 15:02:40 -03:00
parent 406f585ca5
commit 9ff4de4890
2 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#!/bin/env bash
# TODO, verificar se script explode-java-files.sh existe
DOT_CACHE_FILEPATH=~/documents/repos-job/regras-neocad-ETICS-242802/pkgs/meta/installation/wizard/modules/CPqD-OSP-Eng/build/metacache
DOT_CACHE_FILE=$DOT_CACHE_FILEPATH/CPqD-OSP-Eng.cache
DEPLOYMENTS_PATH=~/documents/repos-job/regras-neocad-ETICS-242802/pkgs/ambients/10.30.500.0.0-NEOCAD-T07/wildfly-server/ports-01/deployments
CPQD_CONFIGURATION_JAR_FILENAME=cpqd-configuration.jar
[[ ! -d $CPQD_CONFIGURATION_JAR_FILENAME ]] && explode-java-files.sh $CPQD_CONFIGURATION_JAR_FILENAME
cp $DOT_CACHE_FILE $DEPLOYMENTS_PATH/$CPQD_CONFIGURATION_JAR_FILENAME

View File

@@ -0,0 +1,21 @@
#!/bin/env bash
ROOT_PATH=~/documents/repos-job/regras-neocad-ETICS-242802
REPO_PATH=$ROOT_PATH/gp
DEPLOYMENTS_PATH=$ROOT_PATH/pkgs/ambients/10.30.500.0.0-NEOCAD-T07/wildfly-server/ports-01/deployments
MESSAGES_PATH=(
landbase/fontes/core/components/landbase/src/main/resources/Messages*.properties
)
DIRS_DEST=(
cpqd-etics-admweb-ear-*.ear/cpqd-landbase-landbase-ejb-*.jar/
cpqd-etics-integration-ear-*.ear/cpqd-landbase-landbase-ejb-*.jar/
cpqd-etics-webdeskmapreport-ear-*.ear/cpqd-landbase-landbase-ejb-*.jar/
)
for d1 in ${MESSAGES_PATH[@]}; do
for d2 in ${DIRS_DEST[@]}; do
cp -t $DEPLOYMENTS_PATH/$d2 $REPO_PATH/$d1
done
done