From f143f11b6cb689e87e0c07f23c38e53bbd1620fd Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 19 Feb 2016 15:07:39 +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/jcoreee.jar | Bin 18591 -> 18591 bytes lib/jcountry-core.jar | Bin 6761 -> 6761 bytes 3 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/jcoreee.jar b/lib/jcoreee.jar index 04245e48b4ed18906fe0e1e065f5f1bc39892333..8fa7868d036fb8592e8acfcd35cc661720d5984d 100644 GIT binary patch delta 410 zcmbO~k#YV+M&1B#W)?061`Y;>6BWS|c{P}i11XF7VCt4UnEC@2oUG1h0OC%LVzdO) z(-^J5^kqhSFujt=VDfxtQEr%dAhkb%V*i~vC(mQzfU5BY(?6LU!L%*2JBZ%g&U~H? z%!uSN;}8Ujc+3pC#VXCizyQK_lOHmwPu6pjnw&4sx%ril3=dc>r@T5Vm|?8q$PH$c z>%V0IGty1&vV$4!Hvd_efj*n;>1Y8GnB3wBaqTfjeK7wARNUCf0n9IR@&wa|oV>s^ zzq3D>PIQh1(+8acp?vAd1};ueG3m(@T+G1ilP=+4TG=%oOt-owgX!0kZS*lyc*2GK+0l1Gl+Lf9!&kw08x|G84bX66r&}W zp2lberY|$vgXxt_29xJIi*h5GH~A+}?7uVT{H@^~+;Q_1Vlvig3GmKRnxxtKb z{kJS&M!Lyeb}+-;=08|uvZtd3$ZL~Z93ief=BN)+F!={i97G#CIe_UhCr>ba$jJ*# z^E>;4=|tyPFn!QD5XzUHY~bPq6_cJk!Nm;BKIsw;rj=de!E~!@GMIktnhB=E-5S93 VEw>CX?do0zruVsLfoW}z5&%0-gn=Ho!hVm>p7cS{~j{m}qXlhqjw!E`jE8HnCI zg^`H`%$UhKUkEH?EnxxDKDkW79?ah%p%12C0mVTks7gA5=}bvCFuh4K7)*0WB?16_ CA~H4r delta 140 zcmaE9^3sGiz?+$ci-CcIfg!ZoeKn9mI2-I51We>6bUWOYVEFdfZk2BJ4l zVPs+fGiI{R7Xr&zOIU!kPcDs*;XiI#bdOOmC752Gbl;i2#*Q BD)s;X -- 2.39.5