org.utgenome.shell
Class Create

java.lang.Object
  extended by org.utgenome.core.cui.UTGBCommandBase
      extended by org.utgenome.shell.UTGBShellCommandBase
          extended by org.utgenome.shell.UTGBShellCommand
              extended by org.utgenome.shell.Create
All Implemented Interfaces:
Comparable<org.xerial.util.opt.Command>, org.xerial.util.opt.Command

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
 boolean answerYes
           
 
Fields inherited from class org.utgenome.shell.UTGBShellCommand
APP_FOLDER, EXPLODED_WEBAPP_DIR, SRC_FOLDER, WEBAPP_FOLDER
 
Fields inherited from class org.utgenome.shell.UTGBShellCommandBase
globalOption
 
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, getHelpMessageResource, getObsolteConfigurationFile, getOneLineDescription, getOptionHolder, getPath, getProjectResourcePath, getProjectRoot, isInProjectRoot, loadUTGBConfig, maven, maven
 
Methods inherited from class org.utgenome.shell.UTGBShellCommandBase
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

answerYes

public boolean answerYes
Constructor Detail

Create

public Create()
Method Detail

execute

public void execute(String[] args)
             throws Exception
Specified by:
execute in interface org.xerial.util.opt.Command
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 interface org.xerial.util.opt.Command
Specified by:
name in class UTGBShellCommand

getOneLinerDescription

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


Copyright © 2007-2012 utgenome.org. All Rights Reserved.