It seems a trivial task to generate a Java source file from a property with <scripdef>.

- Alexey.

Rapthor wrote:
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.

--
------------------------------------------------------------------------
Alexey N. Solofnenko <http://trelony.cjb.net/>
Pleasant Hill, CA (GMT-8 usually)

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to