org.globus.cog.gridshell.commands
Class CommandProperties
java.lang.Object
org.globus.cog.gridshell.model.ScopeableProperties
org.globus.cog.gridshell.commands.CommandProperties
- public class CommandProperties
- extends ScopeableProperties
A class used to create commands from a properties file
Example configuration file:
# some inherited files
gridshell.command.inherited.1=${this.path.string}/inherited-1.properties
gridshell.command.inherited.2=${this.path.string}/inherited-2.properties
# some commands
gridshell.command.id.1.org.globus.cog.gridshell.command.gsh.clear=my clear command
gridshell.command.id.2.org.globus.cog.gridshell.command.gsh.clear=clear
gridshell.command.id.1.org.globus.cog.gridshell.command.gsh.echo=echo
# <file-name> should be a value that can be passed to new File(<file-name>)
gridshell.command.inherit.1=<file-name>
gridshell.command.inherit.2=<file-name>
| Methods inherited from class org.globus.cog.gridshell.model.ScopeableProperties |
createList, getFile, getProperty, getProperty, getScope, getSubScope, initScope, keySet, keySet, load, loadFromFile |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PREFIX_INHERIT
public static final String PREFIX_INHERIT
- See Also:
- Constant Field Values
PREFIX_COMMAND
public static final String PREFIX_COMMAND
- See Also:
- Constant Field Values
PREFIX_MAN
public static final String PREFIX_MAN
- See Also:
- Constant Field Values
CommandProperties
public CommandProperties(File file)
throws IOException,
ScopeException
getCommandValue
public String getCommandValue(String id)
getManPages
public Scope getManPages()
getCommands
public Scope getCommands()
getClasses
public Collection getClasses()