This post originated from an RSS feed registered with Agile Buzz
by Jared Richardson.
Original Post: Quick Ant tip
Feed Title: Jared's Weblog
Feed URL: http://www.jaredrichardson.net/blog/index.rss
Feed Description: Jared's weblog.
The web site was created after the launch of the book "Ship It!" and discusses issues from Continuous Integration to web hosting providers.
I was writing a short Ant script to generate the static HTML version of my blog, back everything up and then push it up via FTP to the hosting web server. The FTP task gave me a little trouble, so I'm passing the solution on in the hopes it will save someone else some time.
I know that Ant's FTP task is an optional task and requires the Apache Commons-Net jar to run. This is a known thing for me. So when I set everything up, I looked in Ant's lib folder and saw ant-commons-net.jar I thought "Great!" and kept going.
But somehow, ant-commons-net.jar is ~not~ the same as commons-net.jar. I gave up this evening, downloaded the official version, dropped it in my ant/lib folder and now FTP works. Why? I have no idea... if anyone knows why the Ant team is bundling a jar file with such a similar name, I'd love to know why!