Class ConsoleExecutionContext
- java.lang.Object
-
- org.apache.jackrabbit.vault.util.console.ExecutionContext
-
- org.apache.jackrabbit.vault.util.console.ConsoleExecutionContext
-
- Direct Known Subclasses:
VaultFsConsoleExecutionContext
public class ConsoleExecutionContext extends ExecutionContext
Console
...
-
-
Field Summary
-
Fields inherited from class org.apache.jackrabbit.vault.util.console.ExecutionContext
commands
-
-
Constructor Summary
Constructors Constructor Description ConsoleExecutionContext(AbstractApplication app)
ConsoleExecutionContext(AbstractApplication app, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
attach(Console console)
void
cd(String path)
protected boolean
doExecute(CliCommand cmd, org.apache.commons.cli2.CommandLine cl)
Console
getConsole()
ConsoleFile
getCurrentFile()
ConsoleFile
getFile(String path, boolean mustExist)
String
getName()
String
getProperty(String key)
Set
getPropertyKeys()
ConsoleFile
getRootFile()
Properties
getRuntimeEnv()
void
setCurrentFile(ConsoleFile currentFile)
void
setFileSystem(ConsoleFile rootFile)
-
Methods inherited from class org.apache.jackrabbit.vault.util.console.ExecutionContext
execute, execute, execute, getApplication, getCmdHelpFormatter, getCommand, getCommandsGroup, installCommand, printHelp
-
-
-
-
Constructor Detail
-
ConsoleExecutionContext
public ConsoleExecutionContext(AbstractApplication app)
-
ConsoleExecutionContext
public ConsoleExecutionContext(AbstractApplication app, String name)
-
-
Method Detail
-
attach
public void attach(Console console)
-
getConsole
public Console getConsole()
-
getName
public String getName()
-
setFileSystem
public void setFileSystem(ConsoleFile rootFile)
-
getRootFile
public ConsoleFile getRootFile()
-
getCurrentFile
public ConsoleFile getCurrentFile()
-
getFile
public ConsoleFile getFile(String path, boolean mustExist)
-
cd
public void cd(String path)
-
setCurrentFile
public void setCurrentFile(ConsoleFile currentFile)
-
doExecute
protected boolean doExecute(CliCommand cmd, org.apache.commons.cli2.CommandLine cl) throws Exception
- Overrides:
doExecute
in classExecutionContext
- Throws:
Exception
-
getRuntimeEnv
public Properties getRuntimeEnv()
-
getPropertyKeys
public Set getPropertyKeys()
-
-