Charles Chan
Committed by Gerrit Code Review

Skip the directory if it does not have a POM file

Change-Id: I78e2315b834b5719b6968a5667e6c865b8bfb75a
......@@ -15,9 +15,11 @@ if [ -n "$projects" ]; then
# Ascertain artifact IDs of the projects to be rebuilt
modulesERE=""
for pd in ${projects//,/ }; do
if [ -f ${pd}/pom.xml ]; then
artifactId=$(grep -E "^ <artifactId>.*</artifactId>$" ${pd}/pom.xml | \
sed 's/.[^>]*>//;s/<.*//')
modulesERE="$modulesERE|$artifactId"
fi
done
modulesERE=${modulesERE#|*}
......