Details
-
Type:
Sub-task
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 1.0
-
Fix Version/s: 1.1-beta2
-
Component/s: None
-
Labels:None
Description
Currently, the GrailsScriptRunner uses a hard coded list of scripts that are allowed to be run outside of an application. This is currently defined by the following list:
def scriptsAllowedOutsideProject = ['CreateApp','CreatePlugin','PackagePlugin','Help','ListPlugins','PluginInfo','SetProxy']
Rather than having this hard coded, it would be useful to have other scripts (such as ones in ~/.grails/scripts) also be able to be run outside of an application.
This was proposed on the mailing list and Jeff Brown suggested a convention of having an underbar at the end of the script name to indicate that it's available globally (ex: "FooBar_.groovy"), this fits with the current convention of an underbar prefix which denotes that it's private.
Issue Links
| This issue is related to: | ||||
| GRAILS-2434 | Allow scripts to define default environment |
|
|
|
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
This issue duplicates
GRAILS-3304, which has been resolved.GRAILS-3304, which has been resolved.