Skip to content

Commit

Permalink
run iris validator on examples if jar present
Browse files Browse the repository at this point in the history
  • Loading branch information
crotwell committed Feb 25, 2022
1 parent 7fda10e commit ac53ef2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/examples/validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit ac53ef2

Please sign in to comment.