LPS-47630 Use the ant-execute macro to avoid the delete commons-logging.jar error, and get rid of redundant code (which will also encounter the same error)