]> git.mxchange.org Git - jcustomer-lib.git/commitdiff
dist.sh is now generic and can be easily distributed. You should now use it for
authorRoland Haeder <roland@mxchange.org>
Thu, 8 Oct 2015 15:56:50 +0000 (17:56 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 8 Oct 2015 15:56:50 +0000 (17:56 +0200)
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 <roland@mxchange.org>
dist.sh
lib/jcore.jar
lib/jcoreee.jar
lib/jshop-core.jar

diff --git a/dist.sh b/dist.sh
index f58ac6e337249950594ed69e37e964981717a328..f48251e36059fd6bf0a0acb8832e9459060caac3 100755 (executable)
--- a/dist.sh
+++ b/dist.sh
@@ -1,10 +1,23 @@
 #!/bin/sh
 
-NAME="jshop-ee-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
index d22a62f2ad913d7bf31a70afd98cbb99f167edcf..b3bed2d5841c6440f4bffbf90de0469d878a9957 100644 (file)
Binary files a/lib/jcore.jar and b/lib/jcore.jar differ
index 695f726f40da86d02c181e5456b8714fda08066a..b39cb8c944ebf489c444e37eff82a6afd0a78220 100644 (file)
Binary files a/lib/jcoreee.jar and b/lib/jcoreee.jar differ
index 562865ae3e201e2233a0a4f57fee6caebbfc06ee..e1ef6926ec823d2db123be504de13ddfc2c7b2ce 100644 (file)
Binary files a/lib/jshop-core.jar and b/lib/jshop-core.jar differ