Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Delivered-To: moderator for ant-user@jakarta.apache.org Received: (qmail 89667 invoked from network); 16 Jan 2001 04:42:47 -0000 Received: from www.i-mech.com (HELO i-mech.com) (216.102.219.202) by h31.sny.collab.net with SMTP; 16 Jan 2001 04:42:47 -0000 Received: from kukicha ([192.168.9.9]) by i-mech.com (8.9.3/8.9.3) with SMTP id VAA14202 for ; Mon, 15 Jan 2001 21:38:19 -0800 From: "james terry" To: Subject: RE: Passing in -D argument with space to the ant.bat script Date: Mon, 15 Jan 2001 20:45:41 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In-Reply-To: <3A63CB0E.E3EEE4CC@sendmail.com> X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 one work-around would be to use: "dir /x" to get the 8.3 name of "dir with spacees". james@livemedia.com - -----Original Message----- From: William Lee [mailto:wlee@sendmail.com] Sent: Monday, January 15, 2001 8:16 PM To: Ant User Subject: Passing in -D argument with space to the ant.bat script The "ant.bat" script that comes with Ant 1.2 doesn't seem to support - -D options with space in it. For example, I can do: c:\> ant -DPROP="dir with space" I'll get: with was unexpected at this time. I looked in the script bin\ant.bat and the following section is not working around line 23: :setupArgs if "%1"=="" goto doneArgs set ANT_CMD_LINE_ARGS=%ANT_CMD_LINE_ARGS% %1 shift goto setupArgs I tried to print out %1 through echo, the thing is that it can only get the "-DPROP" part, but not the quoted string "dir with space". I don't know much about NT scripting so if anyone knows how to get this to work I'd be very happy. Thanks. Will -----BEGIN PGP SIGNATURE----- Version: PGP Personal Privacy 6.5.8 iQA/AwUBOmPPxZflVHdG6xJOEQIBoQCgzqUoCTKfkMx0cNnuZITGHU1K0zEAoJ0F KD+Kec57z8UwS1KFY8ICptlq =aFTh -----END PGP SIGNATURE-----