public abstract class SubCommandWithExistingLocalRepo extends SubCommand
| Modifier and Type | Field and Description |
|---|---|
protected String |
local |
protected File |
localFile
File referencing a directory inside the repository (or its root). |
protected String |
localPathPrefix
Must be an empty String ("") or start with the '/' character.
|
protected File |
localRoot
The root directory of the repository.
|
| Constructor and Description |
|---|
SubCommandWithExistingLocalRepo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertLocalRootNotNull() |
void |
prepare()
Invoked before
SubCommand.run(). |
cleanUp, getLocalServerRestClient, getSubCommandDescription, getSubCommandName, isVisibleInHelp, prompt, promptPassword, runprotected String localPathPrefix
protected File localFile
File referencing a directory inside the repository (or its root).public SubCommandWithExistingLocalRepo()
public void prepare() throws Exception
SubCommandSubCommand.run().
Implementors should always invoked the super-method when overriding!
prepare in class SubCommandException - in case, the preparation failed.SubCommand.cleanUp()protected void assertLocalRootNotNull()
Copyright © 2013–2019. All rights reserved.