From 024277aa41c548e3d989834b7bfe684caff539ae Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 8 Oct 2015 17:56:19 +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/jcore.jar | Bin 13656 -> 13656 bytes 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/dist.sh b/dist.sh index e06bc9a..f48251e 100755 --- a/dist.sh +++ b/dist.sh @@ -1,10 +1,23 @@ #!/bin/sh -NAME="jcontacts-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/jcore.jar b/lib/jcore.jar index d22a62f2ad913d7bf31a70afd98cbb99f167edcf..b3bed2d5841c6440f4bffbf90de0469d878a9957 100644 GIT binary patch delta 371 zcmcbSbt8)>z?+$ci-CcIfni(UL>^71t$h>C7cc?YHx)qSZ%rUMS&dO2M1?b2gD4Ir z)yW1d?2`{La)G#K7_A_pW+2Le$s9ygGC2dO&HI>6@qp+qeh(%PeMRs#BZ%H8`~*x- z7k$AD;x|fO2lJz(Rlw>RWV^sLk3s;Lj#JtVmX}uX1Jl{6DQqBp7qzE>_>(hrErBkd zyhPUl#CxV|0HP%HEJ0MTo;`?~qUQ~w9_qP)C{2AY2v276M13s~bFaQTh+;Dc22s%l z5g=--K{$xwGmHUIIfe-!>YQO1h*C2O0#Q{)1t98;Q8tK*G|mB0$Bn^Cz?+$ci-CcIfg!YWB9A6hNasZJ1t9XK0*L$#5}B;Vs1KsT8LdGS2b1b# z0~Yql2N=0P+%t?;5K%J_<-lYPqAHo3fz;-GOs9B2bQiw|6NtVdc$*PKZxnt4rl*U( zU