Updates install-meta.sh and miseExec.sh for metawizard
This commit is contained in:
@@ -125,6 +125,8 @@ chmod_sh_files_recursively() {
|
||||
|
||||
validate_dir "$REPO_DIR" "Please specify a GP's cloned git repository directory with --repo-dir or -r"
|
||||
|
||||
METAWIZARD_JAR_FILENAME=""
|
||||
|
||||
if $SHOULD_DOWNLOAD; then
|
||||
CDK_VERSION=$(get_cdk_version_from_gp_superparent_pom "$REPO_DIR/main/super-parent/pom.xml")
|
||||
|
||||
@@ -134,30 +136,23 @@ if $SHOULD_DOWNLOAD; then
|
||||
fi
|
||||
|
||||
ARTIFACTORY_REPOSITORY=$(get_maven_repo_from_version "$CDK_VERSION")
|
||||
|
||||
METAWIZARD_ARTIFACTORY_PATH="$ARTIFACTORY_REPOSITORY/br/com/cpqd/cdk/cpqd-cdk-meta-installer/$CDK_VERSION/cpqd-cdk-meta-installer-*.jar"
|
||||
|
||||
METAWIZARD_ARTIFACTORY_URL="https://artifactory.cpqd.com.br/artifactory/$(jf rt search --fail-no-op=true --sort-by=path "${METAWIZARD_ARTIFACTORY_PATH}" | jq -r '.[].path')"
|
||||
METAWIZARD_ARTIFACTORY_PATH_WILDCARD="$ARTIFACTORY_REPOSITORY/br/com/cpqd/cdk/cpqd-cdk-meta-installer/$CDK_VERSION/cpqd-cdk-meta-installer-*.jar"
|
||||
METAWIZARD_ARTIFACTORY_PATH=$(jf rt search --fail-no-op=true --sort-by=path "${METAWIZARD_ARTIFACTORY_PATH_WILDCARD}" | jq -r '.[].path')
|
||||
METAWIZARD_JAR_FILENAME=$(basename ${METAWIZARD_ARTIFACTORY_PATH})
|
||||
METAWIZARD_ARTIFACTORY_URL="https://artifactory.cpqd.com.br/artifactory/${METAWIZARD_ARTIFACTORY_PATH}"
|
||||
|
||||
wget $METAWIZARD_ARTIFACTORY_URL
|
||||
fi
|
||||
|
||||
METAWIZARD_SH_FILE="wizard/metawizard.sh"
|
||||
|
||||
if $SHOULD_INSTALL_META; then
|
||||
METAWIZARD_JAR_FILE=$(find * -type f -name '*.jar')
|
||||
|
||||
if [ -z "$METAWIZARD_JAR_FILE" ]; then
|
||||
echo "Could not find MetaWizard's .jar file"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Please specify '$(pwd)' in MetaWizard's installation directory"
|
||||
|
||||
java -jar $METAWIZARD_JAR_FILE
|
||||
java -jar $METAWIZARD_JAR_FILENAME
|
||||
|
||||
chmod_sh_files_recursively "$(pwd)"
|
||||
|
||||
METAWIZARD_SH_FILE=$(find * -type f -name 'metawizard.sh')
|
||||
|
||||
if [ -z "$METAWIZARD_SH_FILE" ]; then
|
||||
echo "Could not find MetaWizard's .sh file"
|
||||
exit 0
|
||||
@@ -182,4 +177,7 @@ if $SHOULD_DO_POST_STEPS; then
|
||||
chmod +x ./$MKLINK_META_FILE
|
||||
|
||||
./$MKLINK_META_FILE $REPO_DIR
|
||||
|
||||
sed -i 's/256/2048/g' ./$METAWIZARD_SH_FILE
|
||||
sed -i 's/512/4096/g' ./$METAWIZARD_SH_FILE
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user