Adds copy-dot-cache-file-to-cpqd-configuration-jar.sh and copy-messages-properties-files-to-deployments-folder.sh
This commit is contained in:
13
scripts/shell/job/gp/copy-dot-cache-file-to-cpqd-configuration-jar.sh
Executable file
13
scripts/shell/job/gp/copy-dot-cache-file-to-cpqd-configuration-jar.sh
Executable 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
|
||||||
21
scripts/shell/job/gp/copy-messages-properties-files-to-deployments-folder.sh
Executable file
21
scripts/shell/job/gp/copy-messages-properties-files-to-deployments-folder.sh
Executable 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
|
||||||
Reference in New Issue
Block a user