mil.dod.th.ose.sdk/src/mil/dod/th/ose/sdk/those/ThoseMain.java
private static void createProject(final ProjectProperties props, final Path projectDir) throws IOException
    {
        // Create and set the Freemarker configuration
        final Configuration freeMarkerConfig = new Configuration();
        final File templateDir = new File(props.getApiDirectory(), "templates");
        freeMarkerConfig.setDirectoryForTemplateLoading(templateDir);
        freeMarkerConfig.setObjectWrapper(new DefaultObjectWrapper());

        // Generate the project
        final Injector injector = Guice.createInjector(new UtilInjectionModule(), new LocalInjectionModule());
        final ProjectGenerator projectGen = injector.getInstance(ProjectGenerator.class);
        projectGen.initialize(freeMarkerConfig, OUT_STREAM);
        try
        {
            projectGen.create(props, projectDir.toFile());
        }
        catch (final Exception ex)
        {
            OUT_STREAM.println("Error generating the project: " + ex.getMessage());
        }
    }
/**
     * Creates a new project based on the given properties.
     * 
     * @param props
     *            Project properties
     * @param projectDir
     *            Directory to create project in
     * @throws IOException
     *             if an I/O error occurs
     */
Creates a new project based on the given properties.

@param props
Project properties
@param projectDir
Directory to create project in
@throws IOException
if an I/O error occurs
Creates a new project based on the given properties . @param props Project properties @param projectDir Directory to create project in @throws IOException if an I / O error occurs
private static void createProject(final ProjectProperties props, final Path projectDir) throws IOException
    {
        final Configuration freeMarkerConfig = new Configuration();
        final File templateDir = new File(props.getApiDirectory(), "templates");
        freeMarkerConfig.setDirectoryForTemplateLoading(templateDir);
        freeMarkerConfig.setObjectWrapper(new DefaultObjectWrapper());
        final Injector injector = Guice.createInjector(new UtilInjectionModule(), new LocalInjectionModule());
        final ProjectGenerator projectGen = injector.getInstance(ProjectGenerator.class);
        projectGen.initialize(freeMarkerConfig, OUT_STREAM);
        try
        {
            projectGen.create(props, projectDir.toFile());
        }
        catch (final Exception ex)
        {
            OUT_STREAM.println("Error generating the project: " + ex.getMessage());
        }
    }
private static void createProject ( final ProjectProperties props , final Path projectDir ) throws IOException { final Configuration freeMarkerConfig = new Configuration ( ) ; final File templateDir = new File ( props . getApiDirectory ( ) , "templates" ) ; freeMarkerConfig . setDirectoryForTemplateLoading ( templateDir ) ; freeMarkerConfig . setObjectWrapper ( new DefaultObjectWrapper ( ) ) ; final Injector injector = Guice . createInjector ( new UtilInjectionModule ( ) , new LocalInjectionModule ( ) ) ; final ProjectGenerator projectGen = injector . getInstance ( ProjectGenerator . class ) ; projectGen . initialize ( freeMarkerConfig , OUT_STREAM ) ; try { projectGen . create ( props , projectDir . toFile ( ) ) ; } catch ( final Exception ex ) { OUT_STREAM . println ( "Error generating the project: " + ex . getMessage ( ) ) ; } }
Creates a new project based on the given properties.
Creates a new project based on the given properties .
// Create and set the Freemarker configuration // Generate the project