Details
-
Wish
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
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