Skip to content

Commit d6d062d

Browse files
committed
Revert to download xsd by generateObjectsFromXsd.sh
1 parent f534750 commit d6d062d

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

scripts/generateObjectsFromXsd.sh

+16-16
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@ echo `date` > $logfile
55
# sudo apt-get install php5-curl
66
# composer install
77

8-
echo SKIP Getting latest XSD
9-
# XSDURL=https://apitest.authorize.net/xml/v1/schema/AnetApiSchema.xsd
10-
# if [ -f AnetApiSchema.xsd ]; then
11-
# echo "Renaming existing schema file"
12-
# mv AnetApiSchema.xsd AnetApiSchema.xsd.old
13-
# fi
14-
# wget $XSDURL 1>> $logfile 2>&1
15-
# ERRORCODE=$?
16-
# if [ $ERRORCODE -ne 0 ];then
17-
# echo "Unable to download XSD from $XSDURL"
18-
# exit $ERRORCODE
19-
# fi
20-
# if [ ! -f AnetApiSchema.xsd ]; then
21-
# echo "SchemaFile not found"
22-
# exit 1
23-
# fi
8+
echo Getting latest XSD
9+
XSDURL=https://apitest.authorize.net/xml/v1/schema/AnetApiSchema.xsd
10+
if [ -f AnetApiSchema.xsd ]; then
11+
echo "Renaming existing schema file"
12+
mv AnetApiSchema.xsd AnetApiSchema.xsd.old
13+
fi
14+
wget $XSDURL 1>> $logfile 2>&1
15+
ERRORCODE=$?
16+
if [ $ERRORCODE -ne 0 ];then
17+
echo "Unable to download XSD from $XSDURL"
18+
exit $ERRORCODE
19+
fi
20+
if [ ! -f AnetApiSchema.xsd ]; then
21+
echo "SchemaFile not found"
22+
exit 1
23+
fi
2424

2525
#create directories that do not exist
2626
apidir=lib/net/authorize/api/contract/v1

0 commit comments

Comments
 (0)