WILDFLY_MODULE_XML_FILE="wildfly/module.xml"
# Glassfish base path (domain)
-GLASSFISH_BASE_PATH="${HOME}/gf_domain/lib"
+GLASSFISH_BASE_PATH="${HOME}/gf_domain/domain/lib"
+
+# Remote Glassfish path
+GLASSFISH_SSH_PATH="/var/payara/domains/domain1/lib"
+
+# Remote SSH server (password-less access)
+GLASSFISH_SSH_SERVER="www.mxchange.org"
# Generate list
LIST=`find ../*/lib/${NAME}.jar`
else
echo "$0: Target '${target}' not found."
fi
+
done
+# Testing on project name
+SKIP_TEST="${NAME:0:9}"
+
+if [ -n "${GLASSFISH_SSH_PATH}" -a -n "${GLASSFISH_SSH_SERVER}" -a "${SKIP_TEST}" != "jratecalc" ]
+then
+ echo "$0: Copying to remote '${GLASSFISH_SSH_SERVER}' ..."
+ scp "${DIST}" "${GLASSFISH_SSH_SERVER}:${GLASSFISH_SSH_PATH}"
+fi
+
# Copy module.xml ...
if [ -f "${WILDFLY_MODULE_XML_FILE}" ]
then