Details
-
Type:
Wish
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.0-beta-7
-
Component/s: None
-
Labels:None
-
Number of attachments :
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
Activity
james strachan
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] | |
| Fix Version/s | 1.0-rc1 [ 10964 ] |
james strachan
made changes -
| Fix Version/s | 1.0-beta-7 [ 11254 ] | |
| Fix Version/s | 1.0-rc1 [ 10964 ] |
It would also be very cool to have a groovy script that would notice when its classes were modified, and re-compile. Also like groovlets.