org.utgenome.shell
Class ScaffoldGenerator

java.lang.Object
  extended by org.utgenome.shell.ScaffoldGenerator

public class ScaffoldGenerator
extends Object

Scaffold generator

Author:
leo

Constructor Summary
ScaffoldGenerator(String outputFolder, Create.ScaffoldFileFilter generateFileFilter)
           
 
Method Summary
static void copyFile(InputStream in, File dest)
           
 void copyScaffold(String inputResourcePacakge, String outputDir)
          Creates the folder structure for the Tomcat
 void createEclipseLaunchFile(String projectName, String templatePath, String suffix)
           
 void createGWTModuleScaffold(UTGBConfig config)
           
 void createProjectScaffold(UTGBConfig config)
           
static String getPath(File f)
           
static void mkdirs(File dir)
          Create directories including its parent folders if not exist
 void prepareTemplatePropeties(UTGBConfig config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScaffoldGenerator

public ScaffoldGenerator(String outputFolder,
                         Create.ScaffoldFileFilter generateFileFilter)
Method Detail

prepareTemplatePropeties

public void prepareTemplatePropeties(UTGBConfig config)

createProjectScaffold

public void createProjectScaffold(UTGBConfig config)
                           throws IOException,
                                  UTGBShellException
Throws:
IOException
UTGBShellException

createGWTModuleScaffold

public void createGWTModuleScaffold(UTGBConfig config)
                             throws IOException,
                                    UTGBShellException
Throws:
IOException
UTGBShellException

createEclipseLaunchFile

public void createEclipseLaunchFile(String projectName,
                                    String templatePath,
                                    String suffix)
                             throws IOException,
                                    UTGBShellException
Throws:
IOException
UTGBShellException

copyScaffold

public void copyScaffold(String inputResourcePacakge,
                         String outputDir)
                  throws IOException
Creates the folder structure for the Tomcat

Parameters:
catalinaBase -
Throws:
IOException

copyFile

public static void copyFile(InputStream in,
                            File dest)
                     throws IOException
Throws:
IOException

mkdirs

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

Parameters:
dir -

getPath

public static String getPath(File f)


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