# Generated JAR file
DIST="dist/${NAME}.jar"
+# Configuration file
+DIST_CONFIG_FILE="${HOME}/.jprojects-dist.sh"
+
# WildFly module base path
WILDFLY_MODULE_BASE_PATH="${HOME}/wildfly_domain/modules/org/mxchange"
# Glassfish base path (domain)
GLASSFISH_BASE_PATH="${HOME}/gf_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"
-
# Windows personal domain
PERSONAL_DOMAIN_PATH="${HOME}/personal_domain/lib"
+# Is the configuration file there?
+if [ ! -f "${DIST_CONFIG_FILE}" ]
+then
+ echo "$0: Configuration file '${DIST_CONFIG_FILE}' not found"
+ echo
+ echo "Following variables are needed:"
+ echo "- GLASSFISH_SSH_PATH"
+ echo "- GLASSFISH_SSH_USER"
+ echo "- GLASSFISH_SSH_SERVER"
+ echo
+ echo "And create a password-less SSH key."
+ exit 1
+fi
+
+# Load it
+source "${DIST_CONFIG_FILE}"
+
+# All set?
+if [ -z "${GLASSFISH_SSH_PATH}" ]
+then
+ echo "$0: Variable GLASSFISH_SSH_PATH not set."
+ exit 1
+elif [ -z "${GLASSFISH_SSH_USER}" ]
+then
+ echo "$0: Variable GLASSFISH_SSH_USER not set."
+ exit 1
+elif [ -z "${GLASSFISH_SSH_SERVER}" ]
+then
+ echo "$0: Variable GLASSFISH_SSH_SERVER not set."
+ exit 1
+fi
+
# Generate list
LIST=$(find ../*/lib/${NAME}.jar)
LIST="${LIST} ${WILDFLY_MODULE_PATH}"
done
-if [ "$1" != "r" -a -n "${GLASSFISH_SSH_PATH}" -a -n "${GLASSFISH_SSH_SERVER}" -a "${NAME}" != "jcore" -a "${NAME}" != "jcore-swing" ]
+if [ "$1" != "r" -a "${NAME}" != "jcore" -a "${NAME}" != "jcore-swing" ]
then
echo "$0: Copying to remote '${GLASSFISH_SSH_SERVER}' ..."
- scp "${DIST}" "${GLASSFISH_SSH_SERVER}:${GLASSFISH_SSH_PATH}"
+ scp "${DIST}" "${GLASSFISH_SSH_USER}@${GLASSFISH_SSH_SERVER}:${GLASSFISH_SSH_PATH}"
fi
# Copy module.xml ...
+++ /dev/null
-build.xml.data.CRC32=d07cb8a1
-build.xml.script.CRC32=bfb971b9
-build.xml.stylesheet.CRC32=8064a381@1.75.2.48
-# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
-# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
-nbproject/build-impl.xml.data.CRC32=d07cb8a1
-nbproject/build-impl.xml.script.CRC32=af724937
-nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48