From 0174f254e816014df5ca5079b86354bee59a8fa1 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 19 Feb 2016 14:27:20 +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/jcore-logger-lib.jar | Bin 2533 -> 2533 bytes lib/jcore.jar | Bin 13656 -> 13656 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/jcore-logger-lib.jar b/lib/jcore-logger-lib.jar index a3fd54ebfe1d379768b5bdfc365d4e7a31ddd118..dc3f9a8d437c6008b3c353b647a8c26e9240854f 100644 GIT binary patch delta 172 zcmaDV{8X4Xz?+$ci-CcIfnh;rz(igR=D9%1Vm>p7cS{~j{m}qXlhql`z;ptm4Va$K z=me&pFnWUM%?3;cOkhSbOFoz}`6`6bUWOYU}FrC0?1E%LQ zI)UjYjGiERvjLL<6PS_Ak`HD~zRG3+GH$W}yFFNC5W7B@Zeh0o)BD-oz%&Pk510<; T2m;eg8VZ0=XmXaW z1xR4>QeAs6{ajZcOiSuP#6$G#!2GFtUSRr>o-3Hv()R?@W%>~QK7BVZpWPq`Ovf06 zgXwJsVPKlyFd9tf8pea^^M;{dTHPoROjjG_gXym{20QR zA^MydEYc)-4I&aPtqf7zDBB5P@GAI281YKGAZlb(d?Ab+)nqoX_DkAR8JU3|nw+I; z0TP(JRM#F%KiAa<(~^1+@en;bFn_9^7npve=L)8^^gY3JnLdQSPu~s9XEz7}(=i6& zV0xQD7?|caj0V%WhVfwfykRJqRyPU+)73`#VEV057MPAQ&IZ#bj3Me2Od#q?Od#?P GP09f}2!@{k 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