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 voidattach(Console console)voidcd(String path)protected booleandoExecute(CliCommand cmd, org.apache.commons.cli2.CommandLine cl)ConsolegetConsole()ConsoleFilegetCurrentFile()ConsoleFilegetFile(String path, boolean mustExist)StringgetName()StringgetProperty(String key)SetgetPropertyKeys()ConsoleFilegetRootFile()PropertiesgetRuntimeEnv()voidsetCurrentFile(ConsoleFile currentFile)voidsetFileSystem(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:
doExecutein classExecutionContext- Throws:
Exception
-
getRuntimeEnv
public Properties getRuntimeEnv()
-
getPropertyKeys
public Set getPropertyKeys()
-
-