ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Buroff" <>
Subject RE: Spaces in classpath
Date Fri, 09 Mar 2001 12:47:22 GMT
I can't fix it myself but I just wanted to comment that I
think not handling spaces in pathnames is a serious
bug that will make ant unusable for a lot of people
on Windows.

Personally, I hate spaces in pathnames but I appear
to be in the minority. Lots of people use them and
they should be supported.

Steve Buroff

-----Original Message-----
From: []On
Behalf Of Weiqi Gao
Sent: Friday, March 09, 2001 7:35 AM
Subject: Re: Spaces in classpath

Stephen New wrote:
> Hello,
> Excuse me if this question has been asked before, but I couldn't see it on
> the FAQ page.
> My execution of the "java" built-in task fails because my the file paths
> the classpath have spaces in them. (Running on Windows NT). Basically I
> to simulate putting double-quotes around the classpath, like:
> java -cp "f:\Filepath With Spaces" com.mycompany.MyClass
> How do I do this? Or do I have to remove the spaces from my filepath?

I'd say remove the spaces from your classpath for now if you don't have
the time to track down the problem.

If you know where the problem is, you can simply correct it in your own
copy of Ant.

If you want the official distribution to behave correctly too, send in a
patch, or post how the fix is done and let someone else generate the

Weiqi Gao

View raw message