]> git.mxchange.org Git - jprojects-scripts.git/commitdiff
Added copying of files to remote host + separated juser-ejb into addressbok-user...
authorRoland Haeder <roland@mxchange.org>
Wed, 2 Mar 2016 20:30:27 +0000 (21:30 +0100)
committerRoland Haeder <roland@mxchange.org>
Wed, 2 Mar 2016 20:30:27 +0000 (21:30 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
.jprojects.sh
dist.sh

index 07fc37ef57c2a0b76a92c49fdd8597402801b0f0..5894b1c30332c3d23a053ab9097ef859d29764f3 100644 (file)
@@ -5,7 +5,7 @@ LIST="jcore jcore-logger-lib jcore-logger-ejb jcoreee \
        jcountry-core jcountry-lib jcountry-ejb \
        jphone-core \
        jcontacts-core jcontacts-business-core jcontacts-lib jcontacts-ejb \
-       juser-core juser-lib juser-ejb \
+       juser-core juser-lib \
        jletter-core jletter-lib jletter-ejb \
        jcore-swing \
        jshop-core jshop-ee-lib jshop-ejb \
@@ -14,8 +14,8 @@ LIST="jcore jcore-logger-lib jcore-logger-ejb jcoreee \
 # Applications and their special libs/EJBs
 LIST="${LIST}
        pizzaservice-lib pizzaservice pizzaservice-swing pizzaservice-war \
-       jjobs-lib jjobs-ejb jjobs jjobs-war \
-       addressbook-lib addressbook-ejb addressbook addressbook-war addressbook-uml"
+       jjobs-lib jjobs-ejb jjobs-user-ejb jjobs jjobs-war \
+       addressbook-lib addressbook-ejb addressbook-user-ejb addressbook addressbook-war addressbook-uml"
 
 # Tools repository
 LIST="${LIST} jprojects-scripts"
diff --git a/dist.sh b/dist.sh
index 246c96af1ea769f1b3d0537977b2876d719ffbac..0bdc4a4324b99914642cb6633dcf4ff23144330a 100755 (executable)
--- a/dist.sh
+++ b/dist.sh
@@ -18,6 +18,12 @@ WILDFLY_MODULE_XML_FILE="wildfly/module.xml"
 # Glassfish base path (domain)
 GLASSFISH_BASE_PATH="${HOME}/gf_domain/domain/lib"
 
+# Remote Glassfish path
+GLASSFISH_SSH_PATH="/var/glassfish/domains/domain1/lib"
+
+# Remote SSH server (password-less access)
+GLASSFISH_SSH_SERVER="www.mxchange.org"
+
 # Generate list
 LIST=`find ../*/lib/${NAME}.jar`
 LIST="${LIST} `find ../*/*-ejb/lib/${NAME}.jar`"
@@ -53,8 +59,15 @@ do
        else
                echo "$0: Target '${target}' not found."
        fi
+
 done
 
+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}"
+fi
+
 # Copy module.xml ...
 if [ -f "${WILDFLY_MODULE_XML_FILE}" ]
 then