|
Description:
Uses the java Properties class to read a java formatted property file. Returns a loaded Property object. Access the properties using the get property method.
$PropertyI getProperty SSLConfig.name
Source: Text Source
proc hashMap { propertiesFile } {
putsLog "proc - [info level 0 ]"
java::import java.util.Properties
java::import java.util.Hashtable
java::import java.util.Map
java::import java.io.FileInputStream
set FileInputStreamI [ java::new FileInputStream $propertiesFile ]
set PropertiesI [ java::new Properties ]
$PropertiesI load $FileInputStreamI
return $PropertiesI
}
The license for this recipe is available here.
Discussion:
|