ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Bullington <>
Subject RE: A String property value
Date Fri, 24 Aug 2001 21:39:46 GMT

You get a gold star on this one!!!!  The ant.bat file
for Weblogic is smaller and has this sequence of

if "%1"=="" goto doneArgs
goto setupArgs


If you look at the ant.bat file for a non-Weblogic
version you will see a file that is MUCH larger and in
particular has:

rem On NT/2K grab all arguments at once
goto doneStart

rem Slurp the command line arguments.  This loop
allows for an unlimited number of 
rem agruments (up to the command line limit, anyway).


if %1a==a goto doneStart
goto setupArgs


So...This the batch file probably would have worked in
W95 but not NT.  Funny thing is, though, that Weblogic
supports NT but not W95.
And, if I make this change to the Weblogic ant.bat and
get all the command line arguments at once, then it
will work.

Thank you VERY MUCH!!

--- wrote:
> Glad to hear the property file can help you.  I
> remembered that from an 
> earlier ticket.
> I'm ignorant of WebLogic (and many other things) but
> perhaps they have 
> altered the script that invokes ant to mess with
> spaces from the 
> command line?  Any way you can check that?
> /bill
> -----Original Message-----
> From: shockride []
> Sent: Friday, August 24, 2001 3:44 PM
> To: ant-user
> Cc: shockride
> Subject: RE: A String property value
> Bill,
> I tried your test and received the following error:
> C:\>ant -Darg1="boo hoo" show
> hoo""=="" was unexpected at this time.
> However, if I run with no spaces, there is no
> problems.
> C:\sptst>ant -Darg1="boohoo" show
> Buildfile: build.xml
> show:
>      [echo] arg1 + boohoo
>      [echo] space + c:/Program Files/
>      [echo] file1 + i exist
> Total time: 1 second
> BTW,  I am using the exact same version of Java as
> you.  Your script does give me the idea that I could
> use a command file to write a date to a file, then
> call ant.  Not the most elegant solution, but the
> easiest for the client to tolarate.
> Thanks,
> Jim

Support anti-Spam legislation.
Join the fight

Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger

View raw message