From ac53ef26b4836918504a5bd695ad1549c2762cea Mon Sep 17 00:00:00 2001 From: Philip Crotwell Date: Fri, 25 Feb 2022 15:43:13 -0500 Subject: [PATCH] run iris validator on examples if jar present --- docs/examples/validate.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/examples/validate.sh b/docs/examples/validate.sh index c4eefea..7738b2d 100755 --- a/docs/examples/validate.sh +++ b/docs/examples/validate.sh @@ -2,6 +2,7 @@ SCHEMAURL='http://www.fdsn.org/xml/station/fdsn-station-1.1.xsd' SCHEMA='fdsn-station-1.1.xsd' +IRIS_VALIDATOR='stationxml-validator-1.7.1.jar' if [[ ! -r 'xmlvalidator/ValidateStationXml.class' ]] then @@ -52,3 +53,11 @@ else fi fi fi + +# run iris content validator +if [[ -e $IRIS_VALIDATOR ]] +then + java -jar $IRIS_VALIDATOR --input $1 +else + echo "IRIS stationxml-validator not found" +fi