From 1283b97f9b277f3ce77c80b4ee452847c7c69ac6 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 19 Feb 2016 14:27:29 +0100 Subject: [PATCH] WildFly branch created with initial scripts, but it doesn't load my libs. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- dist.sh | 48 ++++++++++++++++++++++++++++++++++++------ lib/jcoreee.jar | Bin 18591 -> 18591 bytes lib/jcountry-core.jar | Bin 6761 -> 6761 bytes wildfly/module.xml | 10 +++++++++ 4 files changed, 52 insertions(+), 6 deletions(-) create mode 100644 wildfly/module.xml diff --git a/dist.sh b/dist.sh index f48251e..db1768f 100755 --- a/dist.sh +++ b/dist.sh @@ -1,17 +1,41 @@ -#!/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" + +# 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 [ ! -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 +45,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..6192e2c6882097b222ac07c9be6300ef7b35c442 100644 GIT binary patch delta 410 zcmbO~k#YV+M&1B#W)?061`Y;>g_!{pc{P|904a<4%pl$^c`)@y14K<$XEXrQQH+*g zdK#k@n7+(t52jZ#8BCt7PuFVA_`19Yk+#XFksc zW<+wCaR>rMJZ1*nVwL7$U;tse$qyOTC+oRMP0p9+-26&Nh6k*cQ(m1F%rI7Q*})8VoBv>u$)1iDAg@hsafG<`n4>;O!Q>x6aS(0nkZS*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-gnKn9mI2-I51We>6bUWOYVEFdfZk2BJ4l zVPs+fGiI{R7Xr&zOIU!kPcDs*;XiI#bdOOmC752Gbl;i2#*Q BD)s;X diff --git a/wildfly/module.xml b/wildfly/module.xml new file mode 100644 index 0000000..5bb8b82 --- /dev/null +++ b/wildfly/module.xml @@ -0,0 +1,10 @@ + + + + + + + + + + -- 2.39.5