]> git.mxchange.org Git - jshop-core.git/commitdiff
WildFly branch created with initial scripts, but it doesn't load my libs.
authorRoland Haeder <roland@mxchange.org>
Fri, 19 Feb 2016 13:28:01 +0000 (14:28 +0100)
committerRoland Haeder <roland@mxchange.org>
Fri, 19 Feb 2016 13:28:01 +0000 (14:28 +0100)
Signed-off-by: Roland Häder <roland@mxchange.org>
dist.sh
lib/jcontacts-core.jar
lib/jcore.jar
lib/jcoreee.jar
wildfly/module.xml [new file with mode: 0644]

diff --git a/dist.sh b/dist.sh
index f48251e36059fd6bf0a0acb8832e9459060caac3..db1768f4a3852725bb110ca8ac588d5fc57932ff 100755 (executable)
--- 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
index b6a86f10c9a1cbd067c7d31d56e7d9485b2ab9bb..8e6303e2ddb755381cb91cba61dbf34ade154fad 100644 (file)
Binary files a/lib/jcontacts-core.jar and b/lib/jcontacts-core.jar differ
index 658854d4dcbdceca018177f9d92eeb1ef2778f37..5cf35acca06422127444d7992ffc541383d7aa1c 100644 (file)
Binary files a/lib/jcore.jar and b/lib/jcore.jar differ
index 04245e48b4ed18906fe0e1e065f5f1bc39892333..6192e2c6882097b222ac07c9be6300ef7b35c442 100644 (file)
Binary files a/lib/jcoreee.jar and b/lib/jcoreee.jar differ
diff --git a/wildfly/module.xml b/wildfly/module.xml
new file mode 100644 (file)
index 0000000..5bb8b82
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module xmlns="urn:jboss:module:1.1" name="org.mxchange.NAME">
+       <resources>
+               <resource-root path="NAME.jar"/>
+       </resources>
+
+       <dependencies>
+               <module name="javax.api"/>
+       </dependencies>
+</module>