ant-user mailing list archives

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

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

:setupArgs
if "%1"=="" goto doneArgs
set ANT_ARGS=%ANT_ARGS% %1
shift
goto setupArgs

:doneArgs

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
set ANT_CMD_LINE_ARGS=%*
goto doneStart

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

set ANT_CMD_LINE_ARGS=

:setupArgs
if %1a==a goto doneStart
set ANT_CMD_LINE_ARGS=%ANT_CMD_LINE_ARGS% %1
shift
goto setupArgs

:doneStart

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!!
--Jim

--- Bill.J.Fellows@mail.sprint.com 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 [mailto:shockride@yahoo.com]
> 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
> 
> BUILD SUCCESSFUL
> 
> 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 http://www.cauce.org/

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Mime
View raw message