From ec5e83fb06dc8f0216d17aaa3fd4b7ef51639885 Mon Sep 17 00:00:00 2001
From: Roland Haeder <roland@mxchange.org>
Date: Fri, 19 Feb 2016 14:39:08 +0100
Subject: [PATCH] Updated dist.sh
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

Signed-off-by: Roland Häder <roland@mxchange.org>
---
 dist.sh | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/dist.sh b/dist.sh
index db1768f..a0a77ed 100755
--- a/dist.sh
+++ b/dist.sh
@@ -15,11 +15,20 @@ WILDFLY_MODULE_PATH="${WILDFLY_MODULE_BASE_PATH}/${NAME}/main"
 # module.xml
 WILDFLY_MODULE_XML_FILE="wildfly/module.xml"
 
+# Glassfish base path (domain)
+GLASSFISH_BASE_PATH="${HOME}/gf_domain/lib"
+
 # Generate list
 LIST=`find ../*/lib/${NAME}.jar`
 LIST="${LIST} `find ../*/*-ejb/lib/${NAME}.jar`"
 LIST="${LIST} ${WILDFLY_MODULE_PATH}"
 
+if [ -d "${GLASSFISH_BASE_PATH}" ]
+then
+	echo "$0: Glassfish personal domain found, adding to LIST ..."
+	LIST="${LIST} ${GLASSFISH_BASE_PATH}"
+fi
+
 if [ ! -f "${DIST}" ]
 then
 	echo "$0: '${DIST}' not found."
-- 
2.39.5