Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1013

groovy command accepts very limited number of command line args on windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-3
    • 1.0-JSR-4
    • 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.

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            antti.karanta@napa.fi Antti Karanta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: