On (Android) build, sh:ant command not found

Monkey Forums/Monkey Programming/On (Android) build, sh:ant command not found

Lindsay(Posted 2014) [#1]
This is fixed, but for the benefit of anybody else who has this problem, this is how ...

In short: don't use TextEdit on MacOSX to edit config files!! It somehow screws them up even though they look fine. I started with a clean copy of the file from my original Monkey installation archive, edited it using Monkey (you have to change the file selector to "All Files"), and now everything builds just fine.

-----

Argh ... I had this working. Now I've broken it, and I don't understand how ...

The error I get on compile is:

Building...
sh: ant: command not found
TRANS FAILED: Android build failed.
Done.

Here's my config.macos.txt file ...

'--------------------
'Monkey modules path
'
'Can be overriden via transcc cmd line
'
MODPATH="${MONKEYDIR}/modules;${MONKEYDIR}/modules_ext"
'--------------------

'--------------------
'HTML player path.
'
'Must be set for HTML5 target support.
'
HTML_PLAYER=open -n "${MONKEYDIR}/bin/mserver_macos.app" --args
'--------------------

'--------------------
'Ant build tool path
'
'Must be set to a valid dir for ANDROID target support on Mavericks ('coz Mavericks no longer includes Ant).
'
'Ant is currently available here:
' http://ant.apache.org/bindownload.cgi
'
ANT_PATH="/Applications/Development/apache-ant-1.9.4”
'--------------------

'--------------------
'Flex SDK and flash player path.
'
'Must be set for FLASH target support.
'
FLEX_PATH="/Applications/Development/flex_sdk_4.12.1"
FLEX_PATH="${HOME}/flex_sdk_4.12.1"
FLEX_PATH="${HOME}/flex_sdk_4.9.1"
FLEX_PATH="${HOME}/flex_sdk_4.9"
FLEX_PATH="${HOME}/flex_sdk_4.6"
'
'for opening .swf files...monkey will use HTML_PLAYER if this is not set.
FLASH_PLAYER="/Applications/Adobe Flash CC/Players/Flash Player.app"
'--------------------

'--------------------
'Android SDK and tool paths.
'
'Must be set to a valid for for ANDROID target support
'
'Android SDK
ANDROID_PATH="/Applications/Development/adt-bundle-mac-x86_64-20140321/sdk"
'--------------------

'--------------------
'Android NDK
'
'Must be set to a valid dir for ANDROID NDK target support
'
ANDROID_NDK_PATH="/Applications/Development/android-ndk-r9d"
'--------------------

All the paths are definitely correct. What the heck did I mess up?

Thanks,
Lindsay