From e7c7e33e0eced4c01b5d0394fab5d15ddc920115 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 19 Feb 2016 15:07:43 +0100 Subject: [PATCH] Updated jar(s) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- dist.sh | 57 ++++++++++++++++++++++++++++++++++++++++----- lib/juser-core.jar | Bin 29575 -> 29575 bytes 2 files changed, 51 insertions(+), 6 deletions(-) diff --git a/dist.sh b/dist.sh index f48251e..a0a77ed 100755 --- a/dist.sh +++ b/dist.sh @@ -1,17 +1,50 @@ -#!/bin/sh +#!/bin/bash +# Name of this project, detected by it's base path NAME="${PWD##*/}" + +# Generated JAR file DIST="dist/${NAME}.jar" + +# WildFly module base path +WILDFLY_MODULE_BASE_PATH="${HOME}/wildfly_domain/modules/org/mxchange" + +# And for this "module" (as WildFly calls it) +WILDFLY_MODULE_PATH="${WILDFLY_MODULE_BASE_PATH}/${NAME}/main" + +# module.xml +WILDFLY_MODULE_XML_FILE="wildfly/module.xml" + +# Glassfish base path (domain) +GLASSFISH_BASE_PATH="${HOME}/gf_domain/lib" + +# Generate list LIST=`find ../*/lib/${NAME}.jar` LIST="${LIST} `find ../*/*-ejb/lib/${NAME}.jar`" -LIST="${LIST} ${HOME}/gf_domains/domain1/lib/" +LIST="${LIST} ${WILDFLY_MODULE_PATH}" + +if [ -d "${GLASSFISH_BASE_PATH}" ] +then + echo "$0: Glassfish personal domain found, adding to LIST ..." + LIST="${LIST} ${GLASSFISH_BASE_PATH}" +fi + +if [ ! -f "${DIST}" ] +then + echo "$0: '${DIST}' not found." + exit 1 +elif [ ! -d "${WILDFLY_MODULE_BASE_PATH}" ] +then + echo "$0: WildFly base path '${WILDFLY_MODULE_BASE_PATH}' not created." + exit 1 +elif [ ! -d "${WILDFLY_MODULE_PATH}" ] +then + mkdir -vp "${WILDFLY_MODULE_PATH}" +fi for target in ${LIST}; do - if [ ! -f "${DIST}" ] - then - echo "$0: '${DIST}' not found." - elif [ -d "${target}" ] + if [ -d "${target}" ] then cp -v "${DIST}" "${target}" elif [ -f "${target}" ] @@ -21,3 +54,15 @@ do echo "$0: Target '${target}' not found." fi done + +# Copy module.xml ... +if [ -f "${WILDFLY_MODULE_XML_FILE}" ] +then + echo "$0: Generating module.xml ..." + XML_CONTENT=`cat "${WILDFLY_MODULE_XML_FILE}"` + XML_CONTENT="${XML_CONTENT//NAME/$NAME}" + echo "${XML_CONTENT}" > "${WILDFLY_MODULE_PATH}/module.xml" +fi + +echo "$0: All done." +exit 0 diff --git a/lib/juser-core.jar b/lib/juser-core.jar index 8769dc941f2dabd69877256e0387c5812e3c76fb..7fd7b5cd7454585e160634f70118afc2f66a503b 100644 GIT binary patch delta 663 zcmZpF&e;B(kvG7bnT3mifrEkJY(?-yUJd3mK+0l1Gl+Lf9!&kw08x|G8I8bn45JO0 zp3Ue4rXMg`f@v8hdoUfxqWL)^u7toCVBKm9c;@5)_OejHxP_5Q7;t)9TJQm)Ad0rCo5+_f-f!u65NY3e8A$LGJ?Rgd!{Fto}B3q zrk`epfoZ!eUohR5n14O55=;l@mxAfj`59o^te^l)uPn#`(-MV+V7jL;228&$3~I~!fs%L1;n{0f6$SeTqVOlIYwjG<}*5LA?DWTo5+C8-R!-H70ieTJj?-R$VJVC zcwt|{W-w!NNxB6n>?f~JhXmutbbXM@$;ug!;ET(E1oz?$AF%kRj36-Wp6LmuCujPD z>8F`tVA?Lr7fknMc|iHnlfPs^qEItC3M|%^9RjBBW~YH^x1206y*UTMm&r{A^P6(> z!Soj>otBpe=3mdN1k=I!rC|DWeg>E}D<}ZdD+_YKv_xScnC>Zz0n@Jw!@;y`5rn^_ LC>zWdDlP>86=2-g -- 2.39.5