Using the ant 1.3.beta3 I can pass spaces as args.  This is on a win2k box
with JDK 1.3.  I think you mentioned in a previous post you were running on
RedHat...have you checked the "ant" shell script to see if it's correctly
handling spaces in arguments?  I'm guessing that's where the problem lies.
Try starting it via the "by hand" method (set up the env manually and run

java -classpath "<your classpath>" -Dant.home="${ANT_HOME}" $ANT_OPTS
org.apache.tools.ant.Main -Dbleh="this and that" spotless

If that works, then the start script is stripping out the quotes, so the
command being invoked is:

java ...... org.apache.tools.ant.Main -Dbleh=this and that spotless

which corresponds to your error message.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 11:35 AM
To: [EMAIL PROTECTED]
Subject: RE: Property Setting


I'm trying to use the passed in argument to check out source code from
StarTeam using a label.  I suppose I could just not use spaces, but I
shouldn't have to do that.

Are there any suggesstions for a way to do that, other than having a Perl
script rewrite that one variable before I run ant.

-----Original Message-----
From: Chris Winters [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 9:03 AM
To: [EMAIL PROTECTED]
Cc: Watson, Cory
Subject: Re: Property Setting



* [EMAIL PROTECTED] ([EMAIL PROTECTED]) [010226 09:42]:
> Ok... I'll try again:
> 
> ant -Dbleh="this and that="this and that" spotless
> 
> BUILD FAILED
> 
> Target 'and' does not exist in this project.
> 
> Total time: 0 seconds

This might be an OS problem. Are you using Win95/98? If so, there was
a thread on this a month or two ago on this list.

Chris

Reply via email to