Class Init


  • public class Init
    extends java.lang.Object
    Initialises sample folder structure with pre-defined template
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run​(java.io.File outputFolder, java.io.File templateLocationFolder, java.lang.String templateType)
      Performs checks on output folder before extracting template file
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Init

        @Deprecated
        public Init​(org.apache.commons.configuration2.CompositeConfiguration config)
        Deprecated.
        Parameters:
        config - The project configuration
    • Method Detail

      • run

        public void run​(java.io.File outputFolder,
                        java.io.File templateLocationFolder,
                        java.lang.String templateType)
                 throws java.lang.Exception
        Performs checks on output folder before extracting template file
        Parameters:
        outputFolder - Target directory for extracting template file
        templateLocationFolder - Source location for template file
        templateType - Type of the template to be used
        Throws:
        java.lang.Exception - if required folder structure can't be achieved without content overwriting