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

The groovy script should automatically compile any dependent groovy scripts

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-beta-7
    • None
    • None

    Description

      This works right now for groovlets - we should offer a similar feature when running things from the command line. Here's an example from Mark Volkmann...

      I have a script in a file named Person.groovy that looks like the following.

      class Person {
      name
      age
      }

      I have another script in a file called Demo.groovy that looks like the
      following.

      p = new Person(name:"Jeremy", age:16)

      I didn't compile either script with groovyc.
      I want to run Demo.groovy with the following.

      groovy Demo.groovy

      but that results in MissingClassException: No such class: Person

      Attachments

        Activity

          People

            Unassigned Unassigned
            jstrachan James Strachan
            Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: