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

When using command-line scripts the line number in the current file is not available

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0-JSR-6
    • 1.0-RC-1
    • None
    • None
    • Patch

    Description

      When using other scripting languages a command-line script (defined using option -e) has no access to the current line number. The attached patch defines a new variable 'count' that holds the line number for the current file to be parsed.

      The patched file is GroovyMain.java

      Attachments

        1. GroovyMainLinecount.patch
          1 kB
          Joachim Baumann

        Activity

          People

            guillaume Guillaume Sauthier
            jbaumann Joachim Baumann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: