When converting Unix paths back to Windows when running the "ant" shell script in cygwin, the script passes the wrong options to "cygpath". You're only supposed to pass "--path" if the path being converted is really a Path (i.e. multiple directories separated by path separator - this is only true for CLASSPATH and LOCALCLASSPATH). For single directory or file names (in this case, JAVA_HOME, ANT_HOME and CYGHOME), the --path *must* be omitted. Patch is being attached. Please apply.
Created attachment 4926 [details] Fix cygpath calls in ant shell script
Fixed - thanks.