For reference in the future, here is how I *think* I solved it. I edited the build.sh file and in the main block made the changes:
# comment out the search call
# ANT_HOME=`search $ANT_SEARCH_PATH`
# hard code the path to the tools directory.
This allowed the build to start working, however I still have problems with the compiler throwing "Cannot resolve symbol" errors. I don't think those issues are related to this, so I do believe that the above fixed this particular problem. Hope this helps someone.
on my linux machine, i also had to change ../tools/bin/ant.sh in the jboss source dir:
i uncommented the following lines in the beginning of the file:
# load system-wide ant configuration #if [ -f "/etc/ant.conf" ] ; then # . /etc/ant.conf #fi
if you dont do so you and you have /etc/ant.conf with ANT_HOME set to your regular ant version the jboss ant version is not used.