Skip to main content

Blarg 17: Ant command line parameters broken?

Posted by jfalkner on November 2, 2005 at 2:24 PM PST

I like using Ant. I think it rocks. I can't say I'm as much a fan of Windows, and here is a work around I'd like to highlight in a google-cacheable location.

Recently I bumped a development environment running on a Windows XP box up to JDK 1.5 along with installing Ant 1.6.5. Suddenly any command line parameters passed to ant were being ignored. The fix? Make sure you don't have any trailing backward slashes ("\") in your path variables, e.g use C:\foo instead of C:\foo\.

Why? Windows and Java have a fun way of escaping them. Here is a link to a good talk on the feature along with a more proper writeup.

Related Topics >>