ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Pringle <>
Subject RE: Property Setting
Date Mon, 26 Feb 2001 20:08:48 GMT
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 -Dbleh="this and that" spotless

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

java ...... -Dbleh=this and that spotless

which corresponds to your error message.

-----Original Message-----
From: []
Sent: Monday, February 26, 2001 11:35 AM
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 []
Sent: Monday, February 26, 2001 9:03 AM
Cc: Watson, Cory
Subject: Re: Property Setting

* ( [010226 09:42]:
> Ok... I'll try again:
> ant -Dbleh="this and that="this and that" spotless
> 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.


View raw message