From: Roland Haeder Date: Thu, 8 Oct 2015 15:56:47 +0000 (+0200) Subject: dist.sh is now generic and can be easily distributed. You should now use it for X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9fc3fb2fc0093c44d38fbaed19013338ed01f2a2;p=jcustomer-core.git dist.sh is now generic and can be easily distributed. You should now use it for EJB projects as the EJB jar will be copied to (my system specs, will be improved later on) a Glassfish domain's "lib" directory. I do this here for easy local deployment (not in-place). updated jar(s) Signed-off-by: Roland Häder --- diff --git a/dist.sh b/dist.sh index 05a4fc4..f48251e 100755 --- a/dist.sh +++ b/dist.sh @@ -1,10 +1,23 @@ #!/bin/sh -NAME="jshop-core" +NAME="${PWD##*/}" +DIST="dist/${NAME}.jar" LIST=`find ../*/lib/${NAME}.jar` LIST="${LIST} `find ../*/*-ejb/lib/${NAME}.jar`" +LIST="${LIST} ${HOME}/gf_domains/domain1/lib/" -for entry in ${LIST}; +for target in ${LIST}; do - cp -v dist/${NAME}.jar ${entry} + if [ ! -f "${DIST}" ] + then + echo "$0: '${DIST}' not found." + elif [ -d "${target}" ] + then + cp -v "${DIST}" "${target}" + elif [ -f "${target}" ] + then + cp -v "${DIST}" "${target}" + else + echo "$0: Target '${target}' not found." + fi done diff --git a/lib/jcontacts-core.jar b/lib/jcontacts-core.jar index 277a9e3..898c175 100644 Binary files a/lib/jcontacts-core.jar and b/lib/jcontacts-core.jar differ diff --git a/lib/jcore.jar b/lib/jcore.jar index d22a62f..b3bed2d 100644 Binary files a/lib/jcore.jar and b/lib/jcore.jar differ diff --git a/lib/jcoreee.jar b/lib/jcoreee.jar index 695f726..b39cb8c 100644 Binary files a/lib/jcoreee.jar and b/lib/jcoreee.jar differ