nocturna_gr wrote:
> Hi,
> i have this properies file:
> BASE_DIR=C:/Documents and Settings/paxosk/Desktop/projects/SQOSS/src/
> LOG_MAIL_FILE=${RES_DIR}resources/logs/MailInserter.txt
>
> and this code:
> public static void main(String[] args) throws Exception {
> PropertiesConfiguration conf=new PropertiesConfiguration();
> conf.load(new FileInputStream("C:/Documents and
> Settings/paxosk/Desktop/projects/SQOSS/src/resources/all.prope
> rties"));
> System.err.println((String)conf.getProperty("LOG_MAIL_FILE")); }
>
> The problem is that it prints:
> ${RES_DIR}resources/logs/MailInserter.txt, without parsing
> the RES_DIR...
> How can i fix that?
Define RES_DIR! I cannot see that one anywhere. Or did you intended to use BASE_DIR? ;)
- Jörg
BTW, please ask such questions on the user's list ... thanks!
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
|