Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
ANT task to process properties-files into static class

ANT task to process properties-files into static class

2007-01-02       - By Rapthor
Reply:     1     2     3     4     5     6     7     8     9     10     >>  


Sorry, having confused you.

I have a file named global.properties. This file is edited manually by me.
The webapplication loads this file into a java.util.Properties-instance at
start.

Everywhere I use this Properties instance like "props.getProperty("myProp")"
I have to check whether a "null" is returned or not. This check is at
runtime! I wanted to see these at compile time. And that would be possible
with a static class with attributes.
--
View this message in context: http://www.nabble.com/ANT-task-to-process
-properties-files-into-static-class-tf2909466.html#a8131908
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.