ERROR: Unable to find ant.bat (via %ANT_HOME% or %ANDROID_HOME%/../eclipse/plugins/org.apache.ant*

I have installed apache ant via Homebrew

⇨ which ant
/usr/local/bin/ant

Apache Ant™ version 1.10.1 compiled on February 2 2017

UATHelper: Packaging (Android (All)): ====18-02-2017 02:22:54====PERFORMING FINAL APK PACKAGE OPERATION================================================
UATHelper: Packaging (Android (All)): Program.Main: ERROR: AutomationTool terminated with exception: ERROR: Unable to find ant.bat (via %ANT_HOME% or %ANDROID_HOME%/../eclipse/plugins/org.apache.ant*
UATHelper: Packaging (Android (All)): Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Android (All)): RunUAT ERROR: AutomationTool was unable to run successfully.
PackagingResults:Error: Error Unknown Error