ant official website link:
https://ant.apache.org/
I am here to download version 1.10.7
After extracting .zip file you downloaded to the specified directory
Configuration environment variable
ANT_HOME: ant storage directory
PATH: ant bin directory
Execute the ant command from the command line, if the following message appears, indicating that ant install and configure successfully.