# Generate list
LIST=`find ../*/lib/${NAME}.jar`
+LIST="${LIST} `find ../*/*-ejb/lib/${NAME}.jar`"
LIST="${LIST} ${WILDFLY_MODULE_PATH}"
if [ -d "${GLASSFISH_BASE_PATH}" ]
LIST="${LIST} ${GLASSFISH_BASE_PATH}"
fi
+if [ -d "${PERSONAL_DOMAIN_PATH}" ]
+then
+ echo "$0: Personal domain found, adding to LIST ..."
+ LIST="${LIST} ${PERSONAL_DOMAIN_PATH}"
+fi
+
if [ ! -f "${DIST}" ]
then
echo "$0: '${DIST}' not found."
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
-if [ -d "${PERSONAL_DOMAIN_PATH}" ]
-then
- echo "$0: Personal domain found, copying file '${DIST}' ..."
- cp -v "${DIST}" "${PERSONAL_DOMAIN_PATH}"
-fi
-
for project in ${LIST};
do
if [ -d "${project}" ]
done
-if [ "$1" != "r" -a -n "${GLASSFISH_SSH_PATH}" -a -n "${GLASSFISH_SSH_SERVER}" ]
+if [ -n "${GLASSFISH_SSH_PATH}" -a -n "${GLASSFISH_SSH_SERVER}" ]
then
echo "$0: Copying to remote '${GLASSFISH_SSH_SERVER}' ..."
scp "${DIST}" "${GLASSFISH_SSH_SERVER}:${GLASSFISH_SSH_PATH}"