Files
dotfiles/scripts/shell/job/gp/copy-messages-properties-files-to-deployments-folder.sh

22 lines
653 B
Bash
Executable File

#!/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