package org.techern.dbsg;

import java.util.logging.Logger;

/**
 * DyedBlockStateGenerator; A block state generator for dyed blocks
 *
 * @since 0.0.1
 */
public class DyedBlockStateGenerator {

    /**
     * The {@link Logger} used by {@link DyedBlockStateGenerator}
     *
     * @since 0.0.1
     */
    public static Logger LOGGER = Logger.getLogger("Generator");

    /**
     * Runs {@link DyedBlockStateGenerator}
     *
     * @param arguments The list of arguments
     * @since 0.0.1
     */
    public static void main(String... arguments) {
        LOGGER.info("Starting the dyed block state generator...");
    }

}

@@ -20,16 +20,134 @@
 .dbsg;%0A%0A
+import java.io.IOException;%0Aimport java.nio.file.FileSystems;%0Aimport java.nio.file.Files;%0A%0Aimport java.nio.file.Path;%0A
 import j
@@ -171,16 +171,16 @@
 Logger;%0A
-
 %0A/**%0A * 
@@ -663,16 +663,35 @@
 guments)
+ throws IOException
  %7B%0A     
@@ -751,16 +751,663 @@
 or...%22);
+%0A%0A        Path rootPath = FileSystems.getDefault().getPath(%22.%22);%0A%0A        Path templatePath = rootPath.resolve(%22templates%22);%0A%0A        Path outputPath = rootPath.resolve(%22generated%22);%0A%0A        LOGGER.info(%22Template path is %22 + templatePath.toString() + %22, output path is %22 + outputPath.toString());%0A%0A        if (Files.notExists(templatePath)) %7B%0A            Files.createDirectory(templatePath);%0A            LOGGER.warning(%22Template folder does not exist; Creating%22);%0A        %7D%0A        if (Files.notExists(outputPath)) %7B%0A            Files.createDirectory(outputPath);%0A            LOGGER.warning(%22Output folder does not exist; Creating%22);%0A        %7D%0A%0A%0A
 %0A    %7D%0A%0A

Check for and create directories