ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From emount...@amadeus.net
Subject Re: [PATCH] Allow ant.bat to have an unlimited number of command line arguments
Date Wed, 06 Sep 2000 08:08:36 GMT
Hi folks,

Can't we use %* instead of all the %1 %2 %3....?  Works under NT4.  Don't know
about Win98/95.

Cheers,
:E




From: glennm@ca.ibm.com  on 05/09/2000 22:11 GMT

Please respond to ant-dev@jakarta.apache.org
                                                                                
                                                                                
                                                                                


|--------->
|         |
|--------->
  >--------------------------------------------------------------------------->
  |                                                                           |
  >--------------------------------------------------------------------------->
  >-------------------------------------------|
  |                                           |
  >-------------------------------------------|
|--------->
|To:      |
|--------->
  >--------------------------------------------------------------------------->
  |ant-dev@jakarta.apache.org                                                 |
  >--------------------------------------------------------------------------->
  >-------------------------------------------|
  |                                           |
  |                                           |
  >-------------------------------------------|
|--------->
|cc:      |
|--------->
  >--------------------------------------------------------------------------->
  | (bcc: Eric Mountain/NCE/AMADEUS)                                          |
  >--------------------------------------------------------------------------->
  >-------------------------------------------|
  |                                           |
  |                                           |
  >-------------------------------------------|
|--------->
|         |
|--------->
  >--------------------------------------------------------------------------->
  |                                                                           |
  >--------------------------------------------------------------------------->
  >-------------------------------------------|
  |                                           |
  >-------------------------------------------|
|--------->
|Subject: |
|--------->
  >--------------------------------------------------------------------------->
  |[PATCH] Allow ant.bat to have an unlimited number of command line arguments|
  >--------------------------------------------------------------------------->
  >-------------------------------------------|
  |                                           |
  >-------------------------------------------|







Hey all.

The current ant.bat file has a limit to the number of command line
arguments it can handle.  This usually isn't a big deal, but sometimes you
need to specify a lot of -D options, and it will choke after too many.
Well, more precisely the later ones are ignored.  This patch slurps all
the command line arugments (using set, goto, and shift) into an
environment variable, passes them onto Main.java, and cleans up the
environment var when its done.

Warning:  I haven't tried this on Win98, I only have a WinNT box a work.
I'm going to try Win98 tonight at home.  If it works for 98, it should
work for 95.



Glenn McAllister
Software Developer. IBM Toronto Lab, (416) 448-3805
"An approximate answer to the right question is better than the
right answer to the wrong question." - John W. Tukey

Mime
View raw message