]> git.mxchange.org Git - jaddressbook-share-lib.git/commitdiff
Updated jar(s)
authorRoland Haeder <roland@mxchange.org>
Fri, 19 Feb 2016 14:07:52 +0000 (15:07 +0100)
committerRoland Haeder <roland@mxchange.org>
Fri, 19 Feb 2016 14:07:52 +0000 (15:07 +0100)
Signed-off-by: Roland Häder <roland@mxchange.org>
dist.sh
lib/jcontacts-business-core.jar
lib/jcontacts-core.jar
lib/jcore-logger-lib.jar
lib/jcore-swing.jar
lib/jcore.jar
lib/jcoreee.jar
lib/jcountry-core.jar
lib/jphone-core.jar
lib/juser-core.jar
lib/juser-lib.jar

diff --git a/dist.sh b/dist.sh
index f48251e36059fd6bf0a0acb8832e9459060caac3..a0a77ede7c9cfd7d51d802a0c1dab98b3f18f683 100755 (executable)
--- 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
index d98363aa1b2fda782f593d886c0bb21b4fa4646c..01372e6a4bced30aa6590425600c33cee354dfba 100644 (file)
Binary files a/lib/jcontacts-business-core.jar and b/lib/jcontacts-business-core.jar differ
index b6a86f10c9a1cbd067c7d31d56e7d9485b2ab9bb..de34663934d4afab6ed63fd6a5ed0d22f6e5169a 100644 (file)
Binary files a/lib/jcontacts-core.jar and b/lib/jcontacts-core.jar differ
index a3fd54ebfe1d379768b5bdfc365d4e7a31ddd118..ea0ec333380d7fb3acda50778f3aca0ddd7e39ab 100644 (file)
Binary files a/lib/jcore-logger-lib.jar and b/lib/jcore-logger-lib.jar differ
index 5d04d66b60f4b26c31e1f66bd78baa7fade28b96..4c06ce2b764fe3e6fc1256fcda77ff28a298209d 100644 (file)
Binary files a/lib/jcore-swing.jar and b/lib/jcore-swing.jar differ
index 658854d4dcbdceca018177f9d92eeb1ef2778f37..a2972e6fc4702d5293d1c0b46b2a83acd92d9b29 100644 (file)
Binary files a/lib/jcore.jar and b/lib/jcore.jar differ
index 04245e48b4ed18906fe0e1e065f5f1bc39892333..8fa7868d036fb8592e8acfcd35cc661720d5984d 100644 (file)
Binary files a/lib/jcoreee.jar and b/lib/jcoreee.jar differ
index 10b7658c78eec2a4b565bd8261d9a6ca88ff26d7..83d819e411c91323325ff9272829a572f6e94024 100644 (file)
Binary files a/lib/jcountry-core.jar and b/lib/jcountry-core.jar differ
index f9d636110f1e5ab67a201fd1a7de047651ec31e2..ccc6f060b6cf0635983350e4184507548d6a8f8d 100644 (file)
Binary files a/lib/jphone-core.jar and b/lib/jphone-core.jar differ
index 8769dc941f2dabd69877256e0387c5812e3c76fb..7fd7b5cd7454585e160634f70118afc2f66a503b 100644 (file)
Binary files a/lib/juser-core.jar and b/lib/juser-core.jar differ
index 707aac37274e4db8dde9ca049e4f016fd5c50d54..7b6518d15dffe4edb9dff2ae701ea7d6d5af86b2 100644 (file)
Binary files a/lib/juser-lib.jar and b/lib/juser-lib.jar differ