org.utgenome.shell
Class Create

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

public class Create
extends UTGBShellCommand

Create sub command

Author:
leo

Nested Class Summary
static class Create.CreateAllScaffoldFileFilter
           
static class Create.OverwriteMode
           
static interface Create.ScaffoldFileFilter
           
 
Field Summary
 
Fields inherited from class org.utgenome.shell.UTGBShellCommand
APP_FOLDER, EXPLODED_WEBAPP_DIR, globalOption, SRC_FOLDER, WEBAPP_FOLDER
 
Constructor Summary
Create()
           
 
Method Summary
static void createScaffold(UTGBConfig config, String outputFolder, Create.ScaffoldFileFilter generateFileFilter)
           
 void execute(String[] args)
           
 String getOneLinerDescription()
           
static void mkdirs(File dir)
          Create directories including its parent folders if not exist
 String name()
           
 
Methods inherited from class org.utgenome.shell.UTGBShellCommand
compareTo, createContextXML, createFileFromTemplate, createFileFromTemplate, execute, getConfigFile, getObsolteConfigurationFile, getOptionHolder, getPath, getProjectResourcePath, getProjectRoot, isInProjectRoot, loadUTGBConfig, 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(String[] args)
             throws Exception
Specified by:
execute in class UTGBShellCommand
Throws:
Exception

createScaffold

public static void createScaffold(UTGBConfig config,
                                  String outputFolder,
                                  Create.ScaffoldFileFilter generateFileFilter)
                           throws IOException,
                                  UTGBShellException
Throws:
IOException
UTGBShellException

mkdirs

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

Parameters:
dir -

name

public String name()
Specified by:
name in class UTGBShellCommand

getOneLinerDescription

public String getOneLinerDescription()
Specified by:
getOneLinerDescription in class UTGBShellCommand


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