ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey N. Solofnenko" <A.Solofne...@mdl.com>
Subject Re: ANT task to process properties-files into static class
Date Tue, 02 Jan 2007 22:26:07 GMT
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)

Mime
View raw message