The current script for generating the xjc didn't check if the files already existed. This causes the script to run multiple times during a build, which slows down the build process. This tweak checks the location to see if it exists and skips generating the xjc again.

This commit is contained in:
Cyrus 2020-10-14 10:49:14 -04:00
parent 9d793f50e6
commit 6052d8f8f2

View File

@ -12,4 +12,6 @@ fi
XSD_FILE=$SRC_DIR/main/resources/swid_schema.xsd
xjc -p hirs.utils.xjc $XSD_FILE -d $DEST_DIR -quiet
if [ ! -d "$DEST_DIR/hirs/utils/xjc" ]; then
xjc -p hirs.utils.xjc $XSD_FILE -d $DEST_DIR -quiet
fi