From c8aeb1c0ebdac03eabab1c06b09388f760c0fd82 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 8 Oct 2015 17:56:27 +0200 Subject: [PATCH] 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). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit updated jar(s) Signed-off-by: Roland Häder --- dist.sh | 19 ++++++++++++++++--- lib/jcontacts-business-core.jar | Bin 38314 -> 38314 bytes lib/jcontacts-core.jar | Bin 18101 -> 18101 bytes 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/dist.sh b/dist.sh index b3b3714..f48251e 100755 --- a/dist.sh +++ b/dist.sh @@ -1,10 +1,23 @@ #!/bin/sh -NAME="jcontacts-lib" +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-business-core.jar b/lib/jcontacts-business-core.jar index ef87f61dd96af995434f973739d233936e75e5ff..f9ff3f0407bb457e88480fdfe38c812cafcd78e7 100644 GIT binary patch delta 375 zcmZ3rnrYQ)CY}IqW)?061`Y;>oqZE|G?{kvO*CHsB5x{y$loB5$!d(&AS#*B6-2FK zbOKTD7~MdW8Iuc$s$uc~QOB4ZfYfFV=5$sNUC7Zd1frRwwOK&4zI-c~zs*n)%)e=x z3FfULiUh%)St08!oj0U+vb ze*%cIpAZkC7EH(iQG64#K~(j`6cF_g!t@Xm=mnoMDx6U`TZ$eRiv@;69ivKpf`h)QO31yQRQ zoj}w(MmG>;#^eH`YM4Ag)G;OpAhnr;Ih_?m7jpCqfoLXaZ59x%FW(C0Z!=T`^KY7F zg842Ub9g}Vk3z(mLG{zh^n5L0-_#5cz%;|LAJFnFklHN6#L5Pul{pL*L3EhrS1u6kYciD+L_e|J!2+Zw&vUW_8b0}^lLLq+ z?Q8&|e4Q;pREM)Oh&t=+4Wgu6ffa{0$PBtj1^zqM{kCLDURJ zClGaq(GEy$mSJLL1JTMHhKe9MO!F%ji1sy^$_b*M*zRCq3h$ge&&d+VoqW^D0YphV z8-OTZXRu(0vonZy*4Z0GNx1}ps5}=x5Vg-G0z^r;#(=0Y*EkS$%{3WBS-VvM0Hy0f AU;qFB -- 2.39.5