]> git.mxchange.org Git - juser-activity-core.git/commitdiff
updated dist.sh/.gitattributes
authorRoland Häder <roland@mxchange.org>
Sat, 22 Jul 2017 21:44:24 +0000 (23:44 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 22 Jul 2017 21:44:24 +0000 (23:44 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
dist.sh
src/org/mxchange/jusercore/model/user/activity/UserActivityLog.java

diff --git a/dist.sh b/dist.sh
index 5097f6f56c613de3a1c900fc5d4d881c8854f02f..020632245ccde3fbe87beb4d42f945c31d16e8b3 100755 (executable)
--- a/dist.sh
+++ b/dist.sh
@@ -29,31 +29,16 @@ if [ ! -f "${DIST_CONFIG_FILE}" ]
 then
        echo "$0: Configuration file '${DIST_CONFIG_FILE}' not found"
        echo
-       echo "Following variables are needed:"
+       echo "Following variables are needed for SSH upload:"
        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
+       sleep 3
+else
+       # Load it
+       source "${DIST_CONFIG_FILE}"
 fi
 
 # Generate list
@@ -95,13 +80,17 @@ do
        else
                echo "$0: Project '${project}' not found."
        fi
-
 done
 
-if [ "$1" != "r" -a "${NAME}" != "jcore" -a "${NAME}" != "jcore-swing" ]
+if [ -n "${GLASSFISH_SSH_USER}" -a -n "${GLASSFISH_SSH_SERVER}" -a -n "${GLASSFISH_SSH_PATH}" ]
 then
-       echo "$0: Copying to remote '${GLASSFISH_SSH_SERVER}' ..."
-       scp "${DIST}" "${GLASSFISH_SSH_USER}@${GLASSFISH_SSH_SERVER}:${GLASSFISH_SSH_PATH}"
+       if [ "$1" != "r" -a "${NAME}" != "jcore" -a "${NAME}" != "jcore-swing" ]
+       then
+               echo "$0: Copying to remote '${GLASSFISH_SSH_SERVER}' ..."
+               scp "${DIST}" "${GLASSFISH_SSH_USER}@${GLASSFISH_SSH_SERVER}:${GLASSFISH_SSH_PATH}" || exit 255
+       fi
+else
+       echo "$0: SSH upload disabled."
 fi
 
 # Copy module.xml ...
index c0de715a7059827efbaca8e056b6a817348bffa7..072253aa2a6819c752b5e0b49ee57bab6e1fb73f 100644 (file)
@@ -305,12 +305,12 @@ public class UserActivityLog implements LogableUserActivity {
        }
 
        @Override
-       public PersonalTitle getactivityContactPersonalTitle () {
+       public PersonalTitle getActivityContactPersonalTitle () {
                return this.activityContactPersonalTitle;
        }
 
        @Override
-       public void setactivityContactPersonalTitle (final PersonalTitle activityContactPersonalTitle) {
+       public void setActivityContactPersonalTitle (final PersonalTitle activityContactPersonalTitle) {
                this.activityContactPersonalTitle = activityContactPersonalTitle;
        }