Grails

Modify GrailsScriptRunner to use convention for scripts that are allowed to run outside of a project

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Major 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

Activity

Hide
Jeff Brown added a comment -

This issue duplicates GRAILS-3304, which has been resolved.

Show
Jeff Brown added a comment - This issue duplicates GRAILS-3304, which has been resolved.

People

Vote (1)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: