]> git.mxchange.org Git - jcontacts-business-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:27 +0000 (17:56 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 8 Oct 2015 15:56:27 +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/jcontacts-business-core.jar
lib/jcontacts-core.jar

diff --git a/dist.sh b/dist.sh
index b3b371471ebc3356622f39b27f24094f7ab0be6f..f48251e36059fd6bf0a0acb8832e9459060caac3 100755 (executable)
--- 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
index ef87f61dd96af995434f973739d233936e75e5ff..f9ff3f0407bb457e88480fdfe38c812cafcd78e7 100644 (file)
Binary files a/lib/jcontacts-business-core.jar and b/lib/jcontacts-business-core.jar differ
index 277a9e3c610104bbc03f6140a90767544fb7207e..898c175d69c00f67fac9157914c6c7133158e313 100644 (file)
Binary files a/lib/jcontacts-core.jar and b/lib/jcontacts-core.jar differ