ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Pringle <Jas...@captura.com>
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
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: cwatson@InPhact.com [mailto:cwatson@InPhact.com]
Sent: Monday, February 26, 2001 11:35 AM
To: ant-user@jakarta.apache.org
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:cwinters@optiron.com]
Sent: Monday, February 26, 2001 9:03 AM
To: ant-user@jakarta.apache.org
Cc: Watson, Cory
Subject: Re: Property Setting



* cwatson@InPhact.com (cwatson@InPhact.com) [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

Mime
View raw message