From 768c909980f0b27035df5f5c4fc63a158c83d5f4 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 8 Oct 2015 17:56:05 +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-logger-lib.jar | Bin 2505 -> 2505 bytes lib/jcore.jar | Bin 13656 -> 13656 bytes 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/dist.sh b/dist.sh index 0135af4..f48251e 100755 --- a/dist.sh +++ b/dist.sh @@ -1,10 +1,23 @@ #!/bin/sh -NAME="jcoreee" +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-logger-lib.jar b/lib/jcore-logger-lib.jar index cd41f779784981d770aa97276e831dedb6097c87..08556983cb0c2951a4a448c91601b4b676170e20 100644 GIT binary patch delta 152 zcmX>pd{USvz?+$ci-CcIfnj^!L>^71ZG98X7l6o{3Lx?~NMy1aqdAC*XS4-T^BA2$ z)MG|3AhlVa$&d*|C$WSuF>UXgyo1dWB>S1o0YsUy8-S>EcCg?gc6Si(HM=i}vf>B^ RQT-fIU_p*#5EZ~#2>=dgI2ix{ delta 152 zcmX>pd{USvz?+$ci-CcIfg!YWB9A6hNasZJ1x!HpO$8A7TN6l5R%0{=QSpqnAZi|? zGl+W3=mn%U>oXZLf#@Wb5D-0i2b(3(kjbCf96&r%b^{QV&Ta{!7O}g7sMqYiAj*m( S7)14RM1ci4l0j4eXC(l~zAzmC 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