ant « PropertyFile « Java I/O Q&A





1. ANT task to process properties-files into static class    forums.oracle.com

Hi, I think this problem is very interesting. I have a web application that needs various configuration. I'm using a properties file that is loaded into a Properties-class. The problem arrises when runtime exceptions are thrown (NullPointerException) by using: String value = props.getProperty("myProp"); (In this case the entry "myProp" is not available.) The solution would be to process the properties file ...