String strPluginList = filteringProperties .getProperty("project.required.plugins"); if (strPluginList != null) { StringTokenizer st = new StringTokenizer(strPluginList, ","); while (st.hasMoreTokens()) { forrestPropertiesStringURI = ForrestConfUtils.getPluginDir(st .nextToken().trim()); try { forrestPropertiesStringURI = forrestPropertiesStringURI + SystemUtils.FILE_SEPARATOR + "default.plugin.properties.xml"; filteringProperties = loadXMLPropertiesFromURI( filteringProperties, forrestPropertiesStringURI); } catch (FileNotFoundException e) { if (debugging()) debug("Unable to load " + forrestPropertiesStringURI + ", ignoring. " + e.getMessage()); } } }
	public void initialize() throws Exception {		forrestHome = ForrestConfUtils.getForrestHome();		projectHome = ForrestConfUtils.getProjectHome();		contextHome = ForrestConfUtils.getContextHome();		filteringProperties = new AntProperties();		// add forrest.home and project.home to properties		filteringProperties.setProperty("forrest.home", forrestHome);		filteringProperties.setProperty("project.home", projectHome);		filteringProperties.setProperty("context.home", contextHome);		// NOTE: the first values set get precedence, as in AntProperties		String forrestPropertiesStringURI;		// get the values from forrest.properties.xml		try {			forrestPropertiesStringURI = projectHome					+ SystemUtils.FILE_SEPARATOR + "forrest.properties.xml";			filteringProperties = loadXMLPropertiesFromURI(filteringProperties,					forrestPropertiesStringURI);		} catch (FileNotFoundException e) {			if (debugging())				debug("Unable to find forrest.properties.xml, ignoring.");		}		// if project.required.plugins is curently set, we can load plugin		// defaults as we are using the new forrest.properties.xml config system		String strPluginList = filteringProperties				.getProperty("project.required.plugins");		if (strPluginList != null) {			StringTokenizer st = new StringTokenizer(strPluginList, ",");			while (st.hasMoreTokens()) {				forrestPropertiesStringURI = ForrestConfUtils.getPluginDir(st						.nextToken().trim());				try {					forrestPropertiesStringURI = forrestPropertiesStringURI							+ SystemUtils.FILE_SEPARATOR							+ "default.plugin.properties.xml";					filteringProperties = loadXMLPropertiesFromURI(							filteringProperties, forrestPropertiesStringURI);				} catch (FileNotFoundException e) {					if (debugging())						debug("Unable to load " + forrestPropertiesStringURI								+ ", ignoring. " + e.getMessage());				}			}		}		// get the values from default.forrest.properties.xml		try {			forrestPropertiesStringURI = contextHome					+ SystemUtils.FILE_SEPARATOR					+ "default.forrest.properties.xml";			filteringProperties = loadXMLPropertiesFromURI(filteringProperties,					forrestPropertiesStringURI);		} catch (FileNotFoundException e) {			if (debugging())				debug("Unable to find default.forrest.properties.xml, ignoring.");		}		// get forrest.properties and load the values		forrestPropertiesStringURI = projectHome + SystemUtils.FILE_SEPARATOR				+ "forrest.properties";		filteringProperties = loadAntPropertiesFromURI(filteringProperties,				forrestPropertiesStringURI);		// get default-forrest.properties and load the values		String defaultForrestPropertiesStringURI = contextHome				+ SystemUtils.FILE_SEPARATOR + "default-forrest.properties";		filteringProperties = loadAntPropertiesFromURI(filteringProperties,				defaultForrestPropertiesStringURI);		loadSystemProperties(filteringProperties);		ForrestConfUtils.aliasSkinProperties(filteringProperties);		if (debugging())			debug("Loaded project forrest.properties:" + filteringProperties);	}