Created attachment 24122 [details] The patch. The attached patch fixes compilation with commons-net 2.0. This patch is entirely backward-compatible because both constants IMAGE_FILE_TYPE and BINARY_FILE_TYPE have the same value in commons-net 1.4 but IMAGE_FILE_TYPE is removed in commons-net 2.0. This change is needed for Linux distributions shipping ant with system installed jars (e.g. commons-net) and needing updated commons-net for other software. Thanks in advance.
Also it may be a good time to update ant to using commons-net 2.0 by default.
committed in svn revision 803830 Thanks We won't switch to commons-net 2.0 as our default since this requires Java5 while Ant's trunk still wants to support Java 1.4