protected Properties loadProperties()

in src/java/org/apache/fulcrum/yaafi/framework/configuration/ComponentConfigurationPropertiesResolverBaseImpl.java [176:202]


    protected Properties loadProperties(String fileLocation) throws Exception
    {
        Properties result = new Properties();
        InputStream is = this.createInputStream(fileLocation);

        try
        {
            if(is != null)
            {
		        result.load(is);
		        is.close();
		        is = null;
            }
            else
            {
                this.getLogger().debug("Unable to load the following optional file :" + fileLocation);
            }

            return result;
        }
        catch ( Exception e )
        {
            String msg = "Unable to parse the following file : " + fileLocation;
            this.getLogger().error( msg , e );
            throw e;
        }
    }