If you run an ANT installation and see the error message:
Files was unexpected at this time.
Or something similar you have probably installed ANT into a directory with a space in it. The default path when installing is "c:\program files\ant", but it's a lot more useful to install it into a more base directory, such as "c:\ant".
You cannot set your ANT_HOME to a directory with spaces or special characters in it, unless you use a windows compatibly format, such as: