org.grails.launcher
Class NameUtils

java.lang.Object
  extended by org.grails.launcher.NameUtils

public class NameUtils
extends java.lang.Object

Utility methods for converting between script names used on the command line and their class names, and vice versa.


Constructor Summary
NameUtils()
           
 
Method Summary
static java.lang.String toCommandName(java.lang.String scriptName)
          Converts the name of command given a script name, e.g.
static java.lang.String toScriptName(java.lang.String commandName)
          Converts a command name to the name of the script, e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameUtils

public NameUtils()
Method Detail

toCommandName

public static java.lang.String toCommandName(java.lang.String scriptName)
Converts the name of command given a script name, e.g. RunApp to run-app.

Parameters:
scriptName - The name of the script (e.g. RunApp)
Returns:
The command name representation (e.g. run-app).

toScriptName

public static java.lang.String toScriptName(java.lang.String commandName)
Converts a command name to the name of the script, e.g. run-app to RunApp.

Parameters:
commandName - The name of the command (e.g. run-app)
Returns:
The name of the script file (e.g. RunApp).