'Mac can't find ant although installed

I installed apache-ant-1.10.12-bin.tar.gz on my Mac but as soon as I try to test if it worked it says "command not found: ant" ... I don't know what to do...

I tried ant -version



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source