public static String getScriptName ( String name ) { if ( name == null ) { return null ; } if ( name . endsWith ( ".groovy" ) ) { name = name . substring ( 0 , name . length ( ) - 7 ) ; } return getNaturalName ( name ) . replaceAll ( "\\s" , "-" ) . toLowerCase ( ) ; }
Retrieves the script name representation of the given class name . For example MyFunkyGrailsScript would be my - funky - grails - script .