Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-JSR-3
-
None
-
win xp, jdk 142_08
Description
groovy command line accepts only a very limited number of command line arguments on windows. This is simplest to demonstrate like this:
C:\Temp>groovy -e "println args.toList()" 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
[1, 2, 3, 4, 5, 6, 7]
At the moment the number of arguments seems to be hardcoded into groovy.bat. The minimum fix would be to increase the number of accepted args to something like 20-30 (I don't know if Windows's limitations come into play). The best would of course to be able to accept an arbitrary number of args.