Loads all properties from either the class path or with modified name in the WEB-INF directory. Requires something to be found.
First looks in the classPath for the file. Then replace all path-separators with . and look for a named file in the WEB-INF
directory. Throws an exception if nothings was found and required is true! Example: org/wings/myprops.properties
first checks for that file on the classpath and then for a file WEB-INF/org.wings.myprops.properties .
Parameters: propertyPath - the name of the properties file i.e. org/wings/myprops.properties The Properties loaded throws: java.io.IOException - if something fails or nothing was found |