mil.dod.th.ose.core/src/mil/dod/th/ose/core/impl/mp/TemplateProgramManagerImpl.java
private void loadFromDirectory(final File directory) 
    {    
        m_Logging.log(LogService.LOG_DEBUG, "The absolute path for the template dir is configured to be: %s", 
            directory.getAbsolutePath());
        
        //check that the directory does in fact exist.
        if (directory.exists())
        {
            for (File file : directory.listFiles())
            {
                try 
                {
                    loadFromFile(file.toURI().toURL(), true);
                } 
                catch (final Exception exception) 
                {
                    m_Logging.error(exception, "The XML template at %s cannot be loaded", file.getAbsolutePath());
                }
            }
        }
    }
/**
     * Load templates from the 'templates' directory. 
     * @param directory
     *      the string representation of the path to the template directory
     */
Load templates from the 'templates' directory.
@param directory
the string representation of the path to the template directory
Load templates from the ' templates ' directory . @param directory the string representation of the path to the template directory
private void loadFromDirectory(final File directory) 
    {    
        m_Logging.log(LogService.LOG_DEBUG, "The absolute path for the template dir is configured to be: %s", 
            directory.getAbsolutePath());
        if (directory.exists())
        {
            for (File file : directory.listFiles())
            {
                try 
                {
                    loadFromFile(file.toURI().toURL(), true);
                } 
                catch (final Exception exception) 
                {
                    m_Logging.error(exception, "The XML template at %s cannot be loaded", file.getAbsolutePath());
                }
            }
        }
    }
private void loadFromDirectory ( final File directory ) { m_Logging . log ( LogService . LOG_DEBUG , "The absolute path for the template dir is configured to be: %s" , directory . getAbsolutePath ( ) ) ; if ( directory . exists ( ) ) { for ( File file : directory . listFiles ( ) ) { try { loadFromFile ( file . toURI ( ) . toURL ( ) , true ) ; } catch ( final Exception exception ) { m_Logging . error ( exception , "The XML template at %s cannot be loaded" , file . getAbsolutePath ( ) ) ; } } } }
Load templates from the 'templates' directory.
Load templates from the ' templates ' directory .
//check that the directory does in fact exist.