This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
i'm looking for a pattern to read a custom property file. it seems as if my current design has a principle problems:
- i have a class PropertyReader which reads the file and adds it to the system properties
this code is called from a static initalizer block, a debug log output in the class itself shows that the file is read correctly, all properties can be accessed.
here's my problem when i execute my junit testsuite (from within an ant task): - the file is read without problems (log output in PropertyReader is correct) - from within a test, i can access the "normal" system properties (like file.seperator,...) - but when i access my own properties, it always returns null.