From dfaee1f2f987558f48235770ba63a0805013c146 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 8 Oct 2015 17:56:24 +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-core.jar | Bin 18101 -> 18101 bytes 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/dist.sh b/dist.sh index 0e3b4c6..f48251e 100755 --- a/dist.sh +++ b/dist.sh @@ -1,10 +1,23 @@ #!/bin/sh -NAME="jcontacts-business-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 277a9e3c610104bbc03f6140a90767544fb7207e..898c175d69c00f67fac9157914c6c7133158e313 100644 GIT binary patch delta 199 zcmdnm%eb|dkte{LnT3mifrEizN8dyqO{VRA6U`Se0ogYdK;&;tAURo$(HKNUGg^bF z8H`RK>JFnFklHN6#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