commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hart, Leo" <Leo.H...@FMR.COM>
Subject [configuration] MultiFile Configuration
Date Wed, 13 May 2009 17:45:53 GMT
I am trying to figure out if commons-configuration currently provides a
means to specify a folder and load all property files into
configuration.  For example, I currently have the following:

	<?xml version="1.0" encoding="UTF-8"?>
	<configuration>
	 <override>
	  <system />
	 
	  <properties fileName="/properties/propertyFile.properties"
	   throwExceptionOnMissing="false" config-name="override"
	   config-optional="true" />
	....

and would be interested in having something like:
 

	<?xml version="1.0" encoding="UTF-8"?>
	<configuration>
	 <override>
	  <system />
	 
	  <properties fileName="/properties/*.properties"
	   throwExceptionOnMissing="false" config-name="override"
	   config-optional="true" />
	....

Is there currently a way to do this?  If not, what class\classes would
you recommend extending in order to provide this sort of functionality?
 
Thanks!
Leo

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message