org.utgenome.shell
Class Create

java.lang.Object
  extended by org.utgenome.shell.UTGBShellSubCommandBase
      extended by org.utgenome.shell.Create
All Implemented Interfaces:
java.lang.Comparable<UTGBShellSubCommand>, UTGBShellSubCommand

public class Create
extends UTGBShellSubCommandBase

Create sub command

Author:
leo

Nested Class Summary
static class Create.CreateAllScaffoldFileFilter
           
static class Create.Opt
           
static class Create.OverwriteMode
           
static interface Create.ScaffoldFileFilter
           
 
Field Summary
 
Fields inherited from class org.utgenome.shell.UTGBShellSubCommandBase
APP_FOLDER, EXPLODED_WEBAPP_DIR, globalOption, SRC_FOLDER, WEBAPP_FOLDER
 
Constructor Summary
Create()
           
 
Method Summary
static void createScaffold(java.lang.String projectName, java.lang.String packageName, java.lang.String group, java.lang.String outputFolder, Create.ScaffoldFileFilter generateFileFilter)
           
 void execute(java.lang.String[] args)
           
 java.lang.String getDetailedDescription()
           
 java.lang.String getOneLinerDescription()
           
 java.lang.String getOptionList()
           
static void mkdirs(java.io.File dir)
          Create directories including its parent folders if not exist
 java.lang.String name()
           
 
Methods inherited from class org.utgenome.shell.UTGBShellSubCommandBase
compareTo, createContextXML, createFileFromTemplate, createFileFromTemplate, execute, getPath, getProjectResourcePath, isInProjectRoot, loadTrackConfiguration, loadUsage, maven
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Create

public Create()
Method Detail

execute

public void execute(java.lang.String[] args)
             throws UTGBShellException
Specified by:
execute in interface UTGBShellSubCommand
Specified by:
execute in class UTGBShellSubCommandBase
Throws:
UTGBShellException

createScaffold

public static void createScaffold(java.lang.String projectName,
                                  java.lang.String packageName,
                                  java.lang.String group,
                                  java.lang.String outputFolder,
                                  Create.ScaffoldFileFilter generateFileFilter)
                           throws java.io.IOException,
                                  UTGBShellException
Throws:
java.io.IOException
UTGBShellException

mkdirs

public static void mkdirs(java.io.File dir)
Create directories including its parent folders if not exist

Parameters:
dir -

name

public java.lang.String name()
Specified by:
name in interface UTGBShellSubCommand
Specified by:
name in class UTGBShellSubCommandBase

getDetailedDescription

public java.lang.String getDetailedDescription()

getOneLinerDescription

public java.lang.String getOneLinerDescription()

getOptionList

public java.lang.String getOptionList()


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