Skip to content

Commit 8fb9a2a

Browse files
committed
melting-pot: eat "XPath set is empty" messages
We will try again with the parent POM, if possible.
1 parent 32ee1b4 commit 8fb9a2a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

melting-pot.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ xpath() {
290290
xpath="$xpath/*[local-name()='$1']"
291291
shift
292292
done
293-
xmllint --xpath "$xpath" "$xmlFile" | sed -E 's/^[^>]*>(.*)<[^<]*$/\1/'
293+
xmllint --xpath "$xpath" "$xmlFile" 2> /dev/null |
294+
sed -E 's/^[^>]*>(.*)<[^<]*$/\1/'
294295
}
295296

296297
# For the given GAV ($1), recursively gets the value of the

0 commit comments

Comments
 (0)