org.utgenome.shell
Class UTGBShellSubCommandBase
java.lang.Object
org.utgenome.shell.UTGBShellSubCommandBase
- All Implemented Interfaces:
- java.lang.Comparable<UTGBShellSubCommand>, UTGBShellSubCommand
- Direct Known Subclasses:
- AddAction, Clean, Compile, Create, DBInfo, Deploy, Eclipse, GWT, Import, Maven, Repair, Server, SVNAdd
public abstract class UTGBShellSubCommandBase
- extends java.lang.Object
- implements UTGBShellSubCommand
A common implementation of the UTGBShell's sub commands
- Author:
- leo
Method Summary |
int |
compareTo(UTGBShellSubCommand o)
|
void |
createContextXML(java.lang.String contextPath,
java.lang.String projectRoot,
boolean reloadable)
|
void |
createFileFromTemplate(java.lang.Class<?> baseClass,
java.lang.String templateFilePath,
java.lang.String relativePathOfTarget,
java.util.Properties prop)
|
static void |
createFileFromTemplate(java.lang.Class<?> baseClass,
java.lang.String templateFilePath,
java.lang.String projectFolder,
java.lang.String relativePathOfTarget,
java.util.Properties prop,
boolean overWrite)
|
abstract void |
execute(java.lang.String[] args)
|
void |
execute(UTGBShell.UTGBShellOption globalOption,
java.lang.String[] args)
|
java.io.File |
getConfigFile()
|
static java.lang.String |
getPath(java.io.File f)
|
java.io.File |
getProjectResourcePath(java.lang.String relativePathFromTheProjectRoot)
|
boolean |
isInProjectRoot()
|
org.utgenome.config.TrackConfiguration |
loadTrackConfiguration()
|
static java.lang.String |
loadUsage(java.lang.String helpFileName)
|
void |
maven(java.lang.String commandLine)
|
abstract java.lang.String |
name()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
APP_FOLDER
public static final java.lang.String APP_FOLDER
- See Also:
- Constant Field Values
SRC_FOLDER
public static final java.lang.String SRC_FOLDER
- See Also:
- Constant Field Values
WEBAPP_FOLDER
public static final java.lang.String WEBAPP_FOLDER
- See Also:
- Constant Field Values
EXPLODED_WEBAPP_DIR
public static final java.lang.String EXPLODED_WEBAPP_DIR
- See Also:
- Constant Field Values
globalOption
protected UTGBShell.UTGBShellOption globalOption
UTGBShellSubCommandBase
public UTGBShellSubCommandBase()
name
public abstract java.lang.String name()
- Specified by:
name
in interface UTGBShellSubCommand
execute
public void execute(UTGBShell.UTGBShellOption globalOption,
java.lang.String[] args)
throws UTGBShellException
- Specified by:
execute
in interface UTGBShellSubCommand
- Throws:
UTGBShellException
execute
public abstract void execute(java.lang.String[] args)
throws UTGBShellException
- Specified by:
execute
in interface UTGBShellSubCommand
- Throws:
UTGBShellException
loadUsage
public static java.lang.String loadUsage(java.lang.String helpFileName)
isInProjectRoot
public boolean isInProjectRoot()
getProjectResourcePath
public java.io.File getProjectResourcePath(java.lang.String relativePathFromTheProjectRoot)
getConfigFile
public java.io.File getConfigFile()
maven
public void maven(java.lang.String commandLine)
throws UTGBShellException
- Throws:
UTGBShellException
loadTrackConfiguration
public org.utgenome.config.TrackConfiguration loadTrackConfiguration()
throws UTGBShellException
- Throws:
UTGBShellException
compareTo
public int compareTo(UTGBShellSubCommand o)
- Specified by:
compareTo
in interface java.lang.Comparable<UTGBShellSubCommand>
getPath
public static java.lang.String getPath(java.io.File f)
createContextXML
public void createContextXML(java.lang.String contextPath,
java.lang.String projectRoot,
boolean reloadable)
throws UTGBShellException
- Throws:
UTGBShellException
createFileFromTemplate
public void createFileFromTemplate(java.lang.Class<?> baseClass,
java.lang.String templateFilePath,
java.lang.String relativePathOfTarget,
java.util.Properties prop)
throws UTGBShellException
- Throws:
UTGBShellException
createFileFromTemplate
public static void createFileFromTemplate(java.lang.Class<?> baseClass,
java.lang.String templateFilePath,
java.lang.String projectFolder,
java.lang.String relativePathOfTarget,
java.util.Properties prop,
boolean overWrite)
throws UTGBShellException
- Throws:
UTGBShellException

This work is licensed under a Creative Commons Attribution-ShareAlike 2.1 Japan License.