ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin S" <>
Subject javac, classpath with spaces
Date Mon, 07 Mar 2005 18:19:53 GMT
Hello all,

I've been searching through the archives and the Web today trying to
get the <javac> task working with a classpath that has spaces in it.

Basically, I have something like the following, defined in a property

 classpath = c:\\program files\\rest\\of\\path;[... etc... ]

but when used as

 <javac classpath="${classpath}"
        ... other properties ...

it fails with the following error:

 Expecting class path separator ';' before 
 in argument number 1

I've tried a variety of things, including using quotes around the
property value itself, as well as specifying classpath='"${classpath}"',
and so on, but nothing seems to work.

I guess my question is: is it possible to use spaces in the classpath
property, or am I going to have to make sure that things are installed
into locations with no spaces in the paths (which would be a real pain
as this is for a generic build script that will be used on a number of

I'm running Ant 1.6.2, and I've also tried the 2005-03-07 nightly with
no luck :(

Any help appreciated. Thanks in advance.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message